[anjuta] Adjust to GtkSourceView API break
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Adjust to GtkSourceView API break
- Date: Sun, 20 Mar 2011 20:25:52 +0000 (UTC)
commit f10549e68d43f5b96e62f669d792bce2ae96dfa3
Author: Garrett Regier <alias301 gmail com>
Date: Sun Mar 20 09:23:33 2011 -0700
Adjust to GtkSourceView API break
configure.ac | 2 +-
plugins/sourceview/anjuta-view.c | 2 +-
plugins/sourceview/sourceview-prefs.c | 2 +-
plugins/sourceview/sourceview-provider.c | 2 +-
src/anjuta-app.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4413c46..049d782 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ GDL_REQUIRED=2.91.4
LIBWNCK_REQUIRED=2.12
dnl GtkSourceView
-GTKSOURCEVIEW_REQUIRED=2.91.5
+GTKSOURCEVIEW_REQUIRED=2.91.8
dnl Devhelp
LIBDEVHELP_REQUIRED=2.91.6
diff --git a/plugins/sourceview/anjuta-view.c b/plugins/sourceview/anjuta-view.c
index a99f15e..a672a9d 100644
--- a/plugins/sourceview/anjuta-view.c
+++ b/plugins/sourceview/anjuta-view.c
@@ -84,7 +84,7 @@ static gboolean anjuta_view_key_press_event (GtkWidget *widget,
static gboolean anjuta_view_button_press_event (GtkWidget *widget,
GdkEventButton *event);
-G_DEFINE_TYPE(AnjutaView, anjuta_view, GTK_TYPE_SOURCE_VIEW)
+G_DEFINE_TYPE(AnjutaView, anjuta_view, GTK_SOURCE_TYPE_VIEW)
static gboolean
scroll_to_cursor_real (AnjutaView *view)
diff --git a/plugins/sourceview/sourceview-prefs.c b/plugins/sourceview/sourceview-prefs.c
index 665e6e4..ae3aa68 100644
--- a/plugins/sourceview/sourceview-prefs.c
+++ b/plugins/sourceview/sourceview-prefs.c
@@ -147,7 +147,7 @@ on_notify_autocompletion (GSettings* settings,
GList* node;
for (node = gtk_source_completion_get_providers(completion); node != NULL; node = g_list_next (node))
{
- if (GTK_IS_SOURCE_COMPLETION_WORDS(node->data))
+ if (GTK_SOURCE_IS_COMPLETION_WORDS(node->data))
{
DEBUG_PRINT ("Unregister word completion provider");
gtk_source_completion_words_unregister (GTK_SOURCE_COMPLETION_WORDS(node->data),
diff --git a/plugins/sourceview/sourceview-provider.c b/plugins/sourceview/sourceview-provider.c
index 67a4ac9..84551e6 100644
--- a/plugins/sourceview/sourceview-provider.c
+++ b/plugins/sourceview/sourceview-provider.c
@@ -29,7 +29,7 @@ sourceview_provider_iface_init (GtkSourceCompletionProviderIface* provider);
G_DEFINE_TYPE_WITH_CODE (SourceviewProvider,
sourceview_provider,
G_TYPE_OBJECT,
- G_IMPLEMENT_INTERFACE (GTK_TYPE_SOURCE_COMPLETION_PROVIDER,
+ G_IMPLEMENT_INTERFACE (GTK_SOURCE_TYPE_COMPLETION_PROVIDER,
sourceview_provider_iface_init))
static void
diff --git a/src/anjuta-app.c b/src/anjuta-app.c
index 0953517..8308dad 100644
--- a/src/anjuta-app.c
+++ b/src/anjuta-app.c
@@ -727,7 +727,7 @@ anjuta_app_key_press_event (GtkWidget *widget,
grand_parent_class = g_type_class_peek_parent (parent_class);
/* Special case the editor - it catches all shortcuts otherwise */
- if (GTK_IS_SOURCE_VIEW (focus))
+ if (GTK_SOURCE_IS_VIEW (focus))
if (gtk_window_activate_key (window, event))
return TRUE;
switch (event->keyval)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]