Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
5ad6316e
Kaydet (Commit)
5ad6316e
authored
Haz 23, 2016
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1038 from kugel-/gi-signals
Fix signals for GI
üst
c5f95072
ec15b6f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
73 additions
and
30 deletions
+73
-30
configure.ac
configure.ac
+3
-6
ScintillaGTK.cxx
scintilla/gtk/ScintillaGTK.cxx
+1
-0
scintilla_changes.patch
scintilla/scintilla_changes.patch
+8
-0
cross-build-mingw.sh
scripts/cross-build-mingw.sh
+3
-2
document.c
src/document.c
+12
-0
document.h
src/document.h
+3
-0
editor.c
src/editor.c
+12
-0
editor.h
src/editor.h
+4
-0
filetypes.c
src/filetypes.c
+12
-0
filetypes.h
src/filetypes.h
+3
-0
geanyobject.c
src/geanyobject.c
+0
-0
geanyobject.h
src/geanyobject.h
+4
-21
plugindata.h
src/plugindata.h
+6
-0
plugins.c
src/plugins.c
+2
-1
No files found.
configure.ac
Dosyayı görüntüle @
5ad6316e
...
...
@@ -74,14 +74,11 @@ AS_IF([test "x$enable_gtk3" = xyes],
AM_CONDITIONAL([GTK3], [test "x$gtk_package" = "xgtk+-3.0"])
# GTK/GLib/GIO checks
gtk_modules="$gtk_package >= $gtk_min_version glib-2.0 >= 2.
28
"
gtk_modules_private="gio-2.0 >= 2.
28
gmodule-no-export-2.0"
gtk_modules="$gtk_package >= $gtk_min_version glib-2.0 >= 2.
32
"
gtk_modules_private="gio-2.0 >= 2.
32
gmodule-no-export-2.0"
PKG_CHECK_MODULES([GTK], [$gtk_modules $gtk_modules_private])
AC_SUBST([DEPENDENCIES], [$gtk_modules])
dnl Define minimum requirements to avoid warnings about symbols deprecated afterward.
dnl Although GLIB_VERSION_2_28 is new in 2.32, older versions won't evaluate
dnl GLIB_VERSION_MIN_REQUIRED so it won't be a problem.
AS_VAR_APPEND([GTK_CFLAGS], [" -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_28"])
AS_VAR_APPEND([GTK_CFLAGS], [" -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32"])
dnl Disable all GTK deprecations on 3.x so long as we want to keep 2.x support and only require 3.0.
dnl No need on 2.x as we target the latest version.
AM_COND_IF([GTK3], [AS_VAR_APPEND([GTK_CFLAGS], [" -DGDK_DISABLE_DEPRECATION_WARNINGS"])])
...
...
scintilla/gtk/ScintillaGTK.cxx
Dosyayı görüntüle @
5ad6316e
...
...
@@ -3250,6 +3250,7 @@ void scintilla_release_resources(void) {
static
void
*
copy_
(
void
*
src
)
{
return
src
;
}
static
void
free_
(
void
*
doc
)
{
}
GEANY_API_SYMBOL
GType
scnotification_get_type
(
void
)
{
static
gsize
type_id
=
0
;
if
(
g_once_init_enter
(
&
type_id
))
{
...
...
scintilla/scintilla_changes.patch
Dosyayı görüntüle @
5ad6316e
...
...
@@ -50,6 +50,14 @@ index 0871ca2..49dc278 100644
GtkWidget *scintilla_object_new() {
return scintilla_new();
}
@@ -3250,6 +3250,7 @@ void scintilla_release_resources(void) {
static void *copy_(void *src) { return src; }
static void free_(void *doc) { }
+GEANY_API_SYMBOL
GType scnotification_get_type(void) {
static gsize type_id = 0;
if (g_once_init_enter(&type_id)) {
diff --git scintilla/src/Catalogue.cxx scintilla/src/Catalogue.cxx
index ed47aa8..e58f1ab 100644
--- scintilla/src/Catalogue.cxx
...
...
scripts/cross-build-mingw.sh
Dosyayı görüntüle @
5ad6316e
...
...
@@ -54,7 +54,7 @@ fetch_and_unzip()
{
local basename
=
${
1
##*/
}
curl
-L
-#
"
$1
"
>
"
$basename
"
unzip
-q
"
$basename
"
-d
"
$2
"
unzip
-q
n
"
$basename
"
-d
"
$2
"
rm
-f
"
$basename
"
}
...
...
@@ -87,7 +87,8 @@ mkdir "$BUILDDIR"
cd
"
$BUILDDIR
"
mkdir
_deps
fetch_and_unzip
"
$BUNDLE_ZIP
"
_deps
fetch_and_unzip
"
$GTK3_BUNDLE_ZIP
"
_deps
[
"
$GTK3
"
=
yes
]
||
fetch_and_unzip
"
$BUNDLE_ZIP
"
_deps
# fixup the prefix= in the pkg-config files
sed
-i
"s%^
\(
prefix=
\)
.*
$%
\1
$PWD
/_deps%"
_deps/lib/pkgconfig/
*
.pc
...
...
src/document.c
Dosyayı görüntüle @
5ad6316e
...
...
@@ -3847,3 +3847,15 @@ void document_grab_focus(GeanyDocument *doc)
gtk_widget_grab_focus
(
GTK_WIDGET
(
doc
->
editor
->
sci
));
}
static
void
*
copy_
(
void
*
src
)
{
return
src
;
}
static
void
free_
(
void
*
doc
)
{
}
/** @gironly
* Gets the GType of GeanyDocument
*
* @return the GeanyDocument type */
GEANY_API_SYMBOL
GType
document_get_type
(
void
);
G_DEFINE_BOXED_TYPE
(
GeanyDocument
,
document
,
copy_
,
free_
);
src/document.h
Dosyayı görüntüle @
5ad6316e
...
...
@@ -70,6 +70,9 @@ typedef struct GeanyFilePrefs
GeanyFilePrefs
;
#define GEANY_TYPE_DOCUMENT (document_get_type())
GType
document_get_type
(
void
);
/**
* Structure for representing an open tab with all its properties.
**/
...
...
src/editor.c
Dosyayı görüntüle @
5ad6316e
...
...
@@ -5309,3 +5309,15 @@ void editor_insert_snippet(GeanyEditor *editor, gint pos, const gchar *snippet)
editor_insert_text_block
(
editor
,
pattern
->
str
,
pos
,
-
1
,
-
1
,
TRUE
);
g_string_free
(
pattern
,
TRUE
);
}
static
void
*
copy_
(
void
*
src
)
{
return
src
;
}
static
void
free_
(
void
*
doc
)
{
}
/** @gironly
* Gets the GType of GeanyEditor
*
* @return the GeanyEditor type */
GEANY_API_SYMBOL
GType
editor_get_type
(
void
);
G_DEFINE_BOXED_TYPE
(
GeanyEditor
,
editor
,
copy_
,
free_
);
src/editor.h
Dosyayı görüntüle @
5ad6316e
...
...
@@ -139,6 +139,10 @@ typedef struct GeanyEditorPrefs
}
GeanyEditorPrefs
;
#define GEANY_TYPE_EDITOR (editor_get_type())
GType
editor_get_type
(
void
);
/** Editor-owned fields for each document. */
typedef
struct
GeanyEditor
{
...
...
src/filetypes.c
Dosyayı görüntüle @
5ad6316e
...
...
@@ -1585,3 +1585,15 @@ gboolean filetype_get_comment_open_close(const GeanyFiletype *ft, gboolean singl
return
!
EMPTY
(
*
co
);
}
static
void
*
copy_
(
void
*
src
)
{
return
src
;
}
static
void
free_
(
void
*
doc
)
{
}
/** @gironly
* Gets the GType of GeanyFiletype
*
* @return the GeanyFiletype type */
GEANY_API_SYMBOL
GType
filetype_get_type
(
void
);
G_DEFINE_BOXED_TYPE
(
GeanyFiletype
,
filetype
,
copy_
,
free_
);
src/filetypes.h
Dosyayı görüntüle @
5ad6316e
...
...
@@ -186,6 +186,9 @@ const gchar *filetypes_get_display_name(GeanyFiletype *ft);
const
GSList
*
filetypes_get_sorted_by_name
(
void
);
#define GEANY_TYPE_FILETYPE (filetype_get_type())
GType
filetype_get_type
(
void
);
#ifdef GEANY_PRIVATE
...
...
src/geanyobject.c
Dosyayı görüntüle @
5ad6316e
This diff is collapsed.
Click to expand it.
src/geanyobject.h
Dosyayı görüntüle @
5ad6316e
...
...
@@ -74,6 +74,8 @@ GeanyCallbackId;
typedef
struct
_GeanyObject
GeanyObject
;
typedef
struct
_GeanyObjectClass
GeanyObjectClass
;
/** @gironly
* Instance structure for GeanyObject */
struct
_GeanyObject
{
GObject
parent
;
...
...
@@ -82,30 +84,11 @@ struct _GeanyObject
extern
GObject
*
geany_object
;
/** @gironly
* Class structure for @a GeanyObject */
struct
_GeanyObjectClass
{
GObjectClass
parent_class
;
void
(
*
document_new
)(
GeanyDocument
*
doc
);
void
(
*
document_open
)(
GeanyDocument
*
doc
);
void
(
*
document_reload
)(
GeanyDocument
*
doc
);
void
(
*
document_before_save
)(
GeanyDocument
*
doc
);
void
(
*
document_save
)(
GeanyDocument
*
doc
);
void
(
*
document_filetype_set
)(
GeanyDocument
*
doc
,
GeanyFiletype
*
filetype_old
);
void
(
*
document_activate
)(
GeanyDocument
*
doc
);
void
(
*
document_close
)(
GeanyDocument
*
doc
);
void
(
*
project_open
)(
GKeyFile
*
keyfile
);
void
(
*
project_save
)(
GKeyFile
*
keyfile
);
void
(
*
project_close
)(
void
);
void
(
*
project_dialog_open
)(
GtkWidget
*
notebook
);
void
(
*
project_dialog_confirmed
)(
GtkWidget
*
notebook
);
void
(
*
project_dialog_close
)(
GtkWidget
*
notebook
);
void
(
*
update_editor_menu
)(
const
gchar
*
word
,
gint
click_pos
,
GeanyDocument
*
doc
);
gboolean
(
*
editor_notify
)(
GeanyEditor
*
editor
,
gpointer
scnt
);
void
(
*
geany_startup_complete
)(
void
);
void
(
*
build_start
)(
void
);
void
(
*
save_settings
)(
GKeyFile
*
keyfile
);
void
(
*
load_settings
)(
GKeyFile
*
keyfile
);
};
GType
geany_object_get_type
(
void
);
...
...
src/plugindata.h
Dosyayı görüntüle @
5ad6316e
...
...
@@ -183,6 +183,12 @@ typedef struct GeanyData
struct
GeanyTemplatePrefs
*
template_prefs
;
/**< Template settings */
gpointer
*
_compat
;
/* Remove field on next ABI break (abi-todo) */
GSList
*
filetypes_by_title
;
/**< See filetypes.h#filetypes_by_title. */
/** @gironly
* Global object signalling events via signals
*
* This is mostly for language bindings. Otherwise prefer to use
* plugin_signal_connect() instead this which adds automatic cleanup. */
GObject
*
object
;
}
GeanyData
;
...
...
src/plugins.c
Dosyayı görüntüle @
5ad6316e
...
...
@@ -120,7 +120,8 @@ geany_data_init(void)
&
tool_prefs
,
&
template_prefs
,
NULL
,
/* Remove field on next ABI break (abi-todo) */
filetypes_by_title
filetypes_by_title
,
geany_object
,
};
geany_data
=
gd
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment