glade3 r2020 - in trunk: . plugins/gtk+
- From: tvb svn gnome org
- To: svn-commits-list gnome org
- Subject: glade3 r2020 - in trunk: . plugins/gtk+
- Date: Fri, 7 Nov 2008 21:09:22 +0000 (UTC)
Author: tvb
Date: Fri Nov 7 21:09:22 2008
New Revision: 2020
URL: http://svn.gnome.org/viewvc/glade3?rev=2020&view=rev
Log:
* plugins/gtk+/glade-convert.c: Set the toplevel window accel-groups property when
converting.
Modified:
trunk/ChangeLog
trunk/plugins/gtk+/glade-convert.c
trunk/plugins/gtk+/gtk+.xml.in
Modified: trunk/plugins/gtk+/glade-convert.c
==============================================================================
--- trunk/plugins/gtk+/glade-convert.c (original)
+++ trunk/plugins/gtk+/glade-convert.c Fri Nov 7 21:09:22 2008
@@ -737,12 +737,27 @@
property = glade_widget_get_property (widget, "accel-group");
if (accel_group == NULL)
+ {
+ GladeWidget *toplevel = glade_widget_get_toplevel (widget);
+
accel_group = glade_command_create (glade_widget_adaptor_get_by_type (GTK_TYPE_ACCEL_GROUP),
NULL, NULL, project);
+
+ if (GTK_IS_WINDOW (toplevel->object))
+ {
+ GladeProperty *groups_prop = glade_widget_get_property (toplevel, "accel-groups");
+ GList *list = g_list_append (NULL, accel_group->object);
+ glade_command_set_property (groups_prop, list);
+ g_list_free (list);
+ }
+ }
+
glade_command_set_property (property, accel_group->object);
}
+
+
g_list_free (data->menus);
}
Modified: trunk/plugins/gtk+/gtk+.xml.in
==============================================================================
--- trunk/plugins/gtk+/gtk+.xml.in (original)
+++ trunk/plugins/gtk+/gtk+.xml.in Fri Nov 7 21:09:22 2008
@@ -337,7 +337,7 @@
<properties>
<!-- Virtual accel-groups property to record accel groups -->
- <property id="accel-groups" name="Accel Groups" ignore="True" save="False">
+ <property id="accel-groups" name="Accel Groups" ignore="True" save="False" weight="0.5">
<parameter-spec>
<type>GladeParamObjects</type>
<value-type>GtkAccelGroup</value-type>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]