summaryrefslogtreecommitdiffstats
path: root/devel/anjuta/files/patch-plugins_glade_pluginc.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/anjuta/files/patch-plugins_glade_pluginc.c')
-rw-r--r--devel/anjuta/files/patch-plugins_glade_pluginc.c113
1 files changed, 113 insertions, 0 deletions
diff --git a/devel/anjuta/files/patch-plugins_glade_pluginc.c b/devel/anjuta/files/patch-plugins_glade_pluginc.c
new file mode 100644
index 000000000..569bafe71
--- /dev/null
+++ b/devel/anjuta/files/patch-plugins_glade_pluginc.c
@@ -0,0 +1,113 @@
+--- plugins/glade/plugin.c 2007/06/20 02:18:37 3013
++++ plugins/glade/plugin.c 2007/07/07 13:25:08 3048
+@@ -20,7 +20,7 @@
+
+ #include <config.h>
+
+-#if (GLADEUI_VERSION <= 302)
++#if (GLADEUI_VERSION <= 303)
+ # include <glade.h>
+ #else
+ # if (GLADEUI_VERSION <= 314)
+@@ -54,7 +54,7 @@
+ GtkActionGroup *action_group;
+ GladeApp *gpw;
+ GtkWidget *inspector;
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ GtkWidget *design_notebook;
+ #endif
+ GtkWidget *view_box;
+@@ -428,7 +428,7 @@
+ static void
+ glade_do_close (GladePlugin *plugin, GladeProject *project)
+ {
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ GtkWidget *design_view;
+
+ design_view = g_object_get_data (G_OBJECT (project), "design_view");
+@@ -459,7 +459,11 @@
+ }
+
+ #if (GLADEUI_VERSION >= 330)
+- if (glade_project_get_has_unsaved_changes (project))
++# if (GLADEUI_VERSION > 331)
++ if (glade_project_get_modified (project))
++# else
++ if (glade_project_get_has_unsaved_changes (project))
++# endif
+ #else
+ if (project->changed)
+ #endif
+@@ -502,14 +506,14 @@
+ {
+ GladeProject *project;
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ GtkWidget *design_view;
+ gint design_pagenum;
+ #endif
+ gtk_tree_model_get (model, &iter, PROJECT_COL, &project, -1);
+ glade_app_set_project (project);
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ design_view = g_object_get_data (G_OBJECT (project), "design_view");
+ design_pagenum = gtk_notebook_page_num (GTK_NOTEBOOK (plugin->priv->design_notebook),
+ design_view);
+@@ -713,7 +717,7 @@
+ gtk_container_remove (GTK_CONTAINER (parent), wid);
+ }
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ static void
+ glade_plugin_add_project (GladePlugin *glade_plugin, GladeProject *project)
+ {
+@@ -796,7 +800,7 @@
+ g_object_unref (G_OBJECT (store));
+ gtk_box_pack_start (GTK_BOX (priv->view_box), priv->projects_combo,
+ FALSE, FALSE, 0);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ # if (GLADEUI_VERSION >= 330)
+ priv->inspector = glade_inspector_new ();
+
+@@ -825,7 +829,7 @@
+ gtk_notebook_popup_enable (GTK_NOTEBOOK (glade_app_get_editor ()->notebook));
+
+
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ /* Create design_notebook */
+ priv->design_notebook = gtk_notebook_new ();
+ gtk_notebook_set_show_tabs (GTK_NOTEBOOK (priv->design_notebook), FALSE);
+@@ -862,7 +866,7 @@
+ g_object_ref (glade_app_get_palette ());
+ g_object_ref (glade_app_get_editor ());
+ g_object_ref (priv->view_box);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ g_object_ref (priv->design_notebook);
+ #endif
+ gtk_widget_show (GTK_WIDGET (glade_app_get_palette ()));
+@@ -884,7 +888,7 @@
+ "AnjutaGladeEditor", _("Properties"),
+ "glade-plugin-icon",
+ ANJUTA_SHELL_PLACEMENT_CENTER, NULL);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ anjuta_shell_add_widget (ANJUTA_PLUGIN (plugin)->shell,
+ GTK_WIDGET (priv->design_notebook),
+ "AnjutaGladeDesigner", _("Designer"),
+@@ -935,7 +939,7 @@
+ anjuta_shell_remove_widget (plugin->shell,
+ GTK_WIDGET (priv->view_box),
+ NULL);
+-#if (GLADEUI_VERSION > 302)
++#if (GLADEUI_VERSION > 303)
+ anjuta_shell_remove_widget (plugin->shell,
+ GTK_WIDGET (priv->design_notebook),
+ NULL);