summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Geddes <vgeddes@src.gnome.org>2007-06-28 14:30:43 +0000
committerVincent Geddes <vgeddes@src.gnome.org>2007-06-28 14:30:43 +0000
commit1567a82a9866456ca3a9f08e4c19191789f099a1 (patch)
tree4ec0c9ba7aac8a4bfdec46a604ed848f47eef5dd
parent721746a39e452855c0f18e637d08b695027f0047 (diff)
downloadglade-1567a82a9866456ca3a9f08e4c19191789f099a1.tar.gz
HIGify query dialog.
* gladeui/glade-editor.h: HIGify query dialog. svn path=/trunk/; revision=1411
-rw-r--r--ChangeLog8
-rw-r--r--gladeui/glade-editor.c27
2 files changed, 28 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 32e9ecaf..a03adfab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-06-28 Vincent Geddes <vgeddes@gnome.org>
+ * gladeui/glade-editor.h: HIGify query dialog.
+
+ * plugins/gtk+/Makefile.am, plugins/gnome/Makefile.am: Set log domains
+ "GladeUI-GTK" and "GladeUI-GNOME" respectively.
+
* gladeui/glade-palette.h, gladeui/glade-palette-item.h: Move GladeItemAppearance
enum from glade-palette-item.h to glade-palette.h (so it is visible in the docs).
@@ -9,9 +14,6 @@
* src/glade-project-window.c (glade_project_window_open_project), (switch_project),
(check_reload_project), (open_project): Attempt to reload an open project if
the user tries to open it again (#450483).
-
- * plugins/gtk+/Makefile.am, plugins/gnome/Makefile.am: Set log domains
- "GladeUI-GTK" and "GladeUI-GNOME" respectively.
2007-06-27 Juan Pablo Ugarte <juanpablougarte@gmail.com>
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 9d3129ef..ff8f92cd 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -956,6 +956,18 @@ glade_editor_refresh (GladeEditor *editor)
glade_editor_load_widget_real (editor, editor->loaded_widget);
}
+static void
+query_dialog_style_set_cb (GtkWidget *dialog,
+ GtkStyle *previous_style,
+ gpointer user_data)
+{
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), 12);
+ gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 12);
+ gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 0);
+ gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->action_area), 6);
+}
+
+
gboolean
glade_editor_query_dialog (GladeEditor *editor, GladeWidget *widget)
{
@@ -978,23 +990,30 @@ glade_editor_query_dialog (GladeEditor *editor, GladeWidget *widget)
g_free (title);
+ gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
+ GTK_RESPONSE_OK,
+ GTK_RESPONSE_CANCEL,
+ -1);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+
table = glade_editor_get_table_from_class (editor,
widget->adaptor,
TABLE_TYPE_QUERY);
- gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
-
- gtk_container_set_border_width (GTK_CONTAINER (table->table_widget), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
table->table_widget,
- TRUE, TRUE, 4);
+ FALSE, FALSE, 6);
for (list = table->properties; list; list = list->next)
{
property = list->data;
glade_editor_property_load_by_widget (property, widget);
}
+ g_signal_connect (dialog, "style-set",
+ G_CALLBACK (query_dialog_style_set_cb),
+ NULL);
+
answer = gtk_dialog_run (GTK_DIALOG (dialog));
/*