summaryrefslogtreecommitdiffstats
path: root/devel/anjuta/files/patch-plugins_glade_pluginc.c
blob: 569bafe71633e14382d96b23bd2a95144163c0d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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);