glade3 r1730 - in trunk: . gladeui plugins/gtk+
- From: tvb svn gnome org
- To: svn-commits-list gnome org
- Subject: glade3 r1730 - in trunk: . gladeui plugins/gtk+
- Date: Mon, 10 Mar 2008 17:54:00 +0000 (GMT)
Author: tvb
Date: Mon Mar 10 17:53:59 2008
New Revision: 1730
URL: http://svn.gnome.org/viewvc/glade3?rev=1730&view=rev
Log:
* gladeui/glade-app.c: Now if an empty project is loaded
and anothther project with widgets is loaded, they will
also be shown at load time (first widget in the layout
gets autoloaded).
Modified:
trunk/ChangeLog
trunk/gladeui/glade-app.c
trunk/plugins/gtk+/gtk+.xml.in
Modified: trunk/gladeui/glade-app.c
==============================================================================
--- trunk/gladeui/glade-app.c (original)
+++ trunk/gladeui/glade-app.c Mon Mar 10 17:53:59 2008
@@ -38,6 +38,7 @@
#include "glade-cursor.h"
#include "glade-catalog.h"
#include "glade-fixed.h"
+#include "glade-design-view.h"
#include "glade-marshallers.h"
#include "glade-accumulators.h"
@@ -916,6 +917,9 @@
glade_app_add_project (GladeProject *project)
{
GladeApp *app;
+ GladeDesignView *view;
+ GladeDesignLayout *layout;
+
g_return_if_fail (GLADE_IS_PROJECT (project));
/* If the project was previously loaded, don't re-load */
@@ -945,7 +949,10 @@
glade_app_set_project (project);
/* Select the first window in the project */
- if (g_list_length (app->priv->projects) == 1)
+ if (g_list_length (app->priv->projects) == 1 ||
+ !(view = glade_design_view_get_from_project (project)) ||
+ !(layout = glade_design_view_get_layout (view)) ||
+ !GTK_BIN (layout)->child)
{
GList *node;
for (node = glade_project_get_objects (project);
Modified: trunk/plugins/gtk+/gtk+.xml.in
==============================================================================
--- trunk/plugins/gtk+/gtk+.xml.in (original)
+++ trunk/plugins/gtk+/gtk+.xml.in Mon Mar 10 17:53:59 2008
@@ -778,9 +778,6 @@
</properties>
</glade-widget-class>
-
- <!-- Commenting out new widgets untill string freeze is over
-
<glade-widget-class name="GtkScaleButton" generic-name="scalebutton" _title="Scale Button">
<properties>
<property id="size">
@@ -790,7 +787,7 @@
<value id="GTK_ICON_SIZE_SMALL_TOOLBAR" _name="Small Toolbar"/>
<value id="GTK_ICON_SIZE_LARGE_TOOLBAR" _name="Large Toolbar"/>
<value id="GTK_ICON_SIZE_BUTTON" _name="Button"/>
- <value id="GTK_ICON_SIZE_DND" _name="Drag'n Drop"/>
+ <value id="GTK_ICON_SIZE_DND" _name="Drag & Drop"/>
<value id="GTK_ICON_SIZE_DIALOG" _name="Dialog"/>
</displayable-values>
</property>
@@ -799,8 +796,6 @@
<glade-widget-class name="GtkVolumeButton" generic-name="volumebutton" _title="Volume Button"/>
- -->
-
<glade-widget-class name="GtkFileChooserWidget" generic-name="filechooserwidget" _title="File Chooser Widget">
<post-create-function>glade_gtk_file_chooser_widget_post_create</post-create-function>
<properties>
@@ -963,7 +958,7 @@
<spec>glade_standard_stock_image_spec</spec>
<_tooltip>The stock item for this image</_tooltip>
</property>
- <property id="icon-name" _name="Icon Name" weight="1.6"/>
+ <property id="icon-name" _name="Icon Name" themed-icon="True" weight="1.6"/>
</properties>
</glade-widget-class>
@@ -1701,12 +1696,8 @@
<glade-widget-class-ref name="GtkColorButton"/>
<glade-widget-class-ref name="GtkFontButton"/>
<glade-widget-class-ref name="GtkLinkButton"/>
-
-
- <!-- Commenting out these widgets until freeze is over
<glade-widget-class-ref name="GtkScaleButton"/>
<glade-widget-class-ref name="GtkVolumeButton"/>\
- -->
<glade-widget-class-ref name="GtkImage"/>
<glade-widget-class-ref name="GtkLabel"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]