[Goodies-commits] r6458 - in xfce4-clipman-plugin/branches/xfce-4-6: . panel-plugin

Mike Massonnet mmassonnet at xfce.org
Wed Jan 14 20:39:49 CET 2009


Author: mmassonnet
Date: 2009-01-14 19:39:49 +0000 (Wed, 14 Jan 2009)
New Revision: 6458

Added:
   xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/common.h
   xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/settings-dialog.glade
Modified:
   xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog
   xfce4-clipman-plugin/branches/xfce-4-6/configure.ac.in
   xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/Makefile.am
   xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/collector.c
   xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/history.c
   xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c
Log:
The settings dialog is in.

Modified: xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog	2009-01-14 15:44:17 UTC (rev 6457)
+++ xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog	2009-01-14 19:39:49 UTC (rev 6458)
@@ -1,3 +1,19 @@
+2009-01-14	Mike Massonnet
+The settings dialog is in.
+
+	- configure.ac.in, panel-plugin/Makefile.am:
+		Add Glade dependency for the settings dialog.
+	- panel-plugin/common.h, panel-plugin/history.c,
+	panel-plugin/collector.c:
+		Declare define names for the default values, also rename the
+		property ignore-primary-clipboard from ClipmanCollector to
+		add-primary-clipboard to keep the easiness of Xfconf bindings
+		inside the settings dialog.
+	- panel-plugin/panel-plugin.c:
+		Connect configure function from XfcePanelPlugin.
+	- panel-plugin/settings-dialog.glade:
+		The Glade interface of the settings dialog.
+
 2009-01-13	Mike Massonnet
 New property in ClipmanHistory "save-on-quit".
 

Modified: xfce4-clipman-plugin/branches/xfce-4-6/configure.ac.in
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/configure.ac.in	2009-01-14 15:44:17 UTC (rev 6457)
+++ xfce4-clipman-plugin/branches/xfce-4-6/configure.ac.in	2009-01-14 19:39:49 UTC (rev 6458)
@@ -63,6 +63,7 @@
 XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.4.0])
 XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.4.0])
 XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.5.92])
+XDT_CHECK_PACKAGE([GLADE], [libglade-2.0], [2.6.0])
 
 dnl ******************************
 dnl *** Check for i18n support ***

Modified: xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/Makefile.am
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/Makefile.am	2009-01-14 15:44:17 UTC (rev 6457)
+++ xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/Makefile.am	2009-01-14 19:39:49 UTC (rev 6458)
@@ -13,6 +13,7 @@
 
 xfce4_clipman_plugin_SOURCES =						\
 	panel-plugin.c							\
+	common.h							\
 	collector.c			collector.h			\
 	history.c			history.h			\
 	menu.c				menu.h				\
@@ -25,6 +26,7 @@
 	@LIBXFCEGUI4_CFLAGS@						\
 	@LIBXFCE4PANEL_CFLAGS@						\
 	@XFCONF_CFLAGS@							\
+	@GLADE_CFLAGS@							\
 	$(NULL)
 
 xfce4_clipman_plugin_LDADD =						\
@@ -34,8 +36,15 @@
 	@LIBXFCEGUI4_LIBS@						\
 	@LIBXFCE4PANEL_LIBS@						\
 	@XFCONF_LIBS@							\
+	@GLADE_LIBS@							\
 	$(NULL)
 
+if MAINTAINER_MODE
+BUILT_SOURCES = settings-dialog_glade.h
+settings-dialog_glade.h: settings-dialog.glade
+	exo-csource --static --strip-comments --strip-content --name=settings_dialog_glade $< >$@
+endif
+
 desktopdir = $(datadir)/xfce4/panel-plugins
 desktop_in_in_files = xfce4-clipman-plugin.desktop.in.in
 desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
@@ -46,6 +55,10 @@
 	sed -e "s^@EXTERNAL_PLUGIN_PATH@^$(libexecdir)/xfce4/panel-plugins^" \
 		$< > $@
 
+EXTRA_DIST =								\
+	settings-dialog.glade						\
+	$(NULL)
+
 CLEANFILES =								\
 	$(desktop_DATA)							\
 	$(NULL)

Modified: xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/collector.c
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/collector.c	2009-01-14 15:44:17 UTC (rev 6457)
+++ xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/collector.c	2009-01-14 19:39:49 UTC (rev 6458)
@@ -24,6 +24,7 @@
 #include <libxfce4util/libxfce4util.h>
 #include <xfconf/xfconf.h>
 
+#include "common.h"
 #include "history.h"
 
 #include "collector.h"
@@ -42,13 +43,13 @@
   GtkClipboard         *default_clipboard;
   GtkClipboard         *primary_clipboard;
   guint                 primary_clipboard_timeout;
-  gboolean              ignore_primary_clipboard;
+  gboolean              add_primary_clipboard;
   gboolean              restoring;
 };
 
 enum
 {
-  IGNORE_PRIMARY_CLIPBOARD = 1,
+  ADD_PRIMARY_CLIPBOARD = 1,
 };
 
 static void             clipman_collector_class_init        (ClipmanCollectorClass *klass);
@@ -117,7 +118,7 @@
            * (Ctrl+Q in general).  Most of the time the primary clipboard will
            * be set empty ("") instead of being destroyed when the application
            * closes (Alt+F4). */
-          if (!collector->priv->ignore_primary_clipboard)
+          if (collector->priv->add_primary_clipboard)
             _clipman_collector_restore_clipboard (collector, collector->priv->primary_clipboard);
         }
 
@@ -151,7 +152,7 @@
        * actually check inside a delayed timeout if the mouse is still pressed
        * or if the shift key is hold down, and once both are released the
        * content will go to the history. */
-      if (!collector->priv->ignore_primary_clipboard)
+      if (collector->priv->add_primary_clipboard)
         {
           if (collector->priv->primary_clipboard_timeout == 0)
             collector->priv->primary_clipboard_timeout =
@@ -277,11 +278,11 @@
   object_class->set_property = clipman_collector_set_property;
   object_class->get_property = clipman_collector_get_property;
 
-  g_object_class_install_property (object_class, IGNORE_PRIMARY_CLIPBOARD,
-                                   g_param_spec_boolean ("ignore-primary-clipboard",
-                                                         "IgnorePrimaryClipboard",
-                                                         "Ignore the primary clipboard",
-                                                         TRUE,
+  g_object_class_install_property (object_class, ADD_PRIMARY_CLIPBOARD,
+                                   g_param_spec_boolean ("add-primary-clipboard",
+                                                         "AddPrimaryClipboard",
+                                                         "Add the primary clipboard to the history",
+                                                         DEFAULT_ADD_PRIMARY_CLIPBOARD,
                                                          G_PARAM_CONSTRUCT|G_PARAM_READWRITE));
 }
 
@@ -330,8 +331,8 @@
 
   switch (property_id)
     {
-    case IGNORE_PRIMARY_CLIPBOARD:
-      priv->ignore_primary_clipboard = g_value_get_boolean (value);
+    case ADD_PRIMARY_CLIPBOARD:
+      priv->add_primary_clipboard = g_value_get_boolean (value);
       break;
 
     default:
@@ -349,8 +350,8 @@
 
   switch (property_id)
     {
-    case IGNORE_PRIMARY_CLIPBOARD:
-      g_value_set_boolean (value, priv->ignore_primary_clipboard);
+    case ADD_PRIMARY_CLIPBOARD:
+      g_value_set_boolean (value, priv->add_primary_clipboard);
       break;
 
     default:

Added: xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/common.h
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/common.h	                        (rev 0)
+++ xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/common.h	2009-01-14 19:39:49 UTC (rev 6458)
@@ -0,0 +1,32 @@
+/*
+ *  common.h -- defines default values to use between the components
+ *
+ *  Copyright (c) 2009 Mike Massonnet <mmassonnet at xfce.org>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/*
+ * Default values
+ */
+
+/* History */
+#define DEFAULT_MAX_TEXTS_IN_HISTORY            10
+#define DEFAULT_MAX_IMAGES_IN_HISTORY           1
+#define DEFAULT_SAVE_ON_QUIT                    TRUE
+
+/* Collector */
+#define DEFAULT_ADD_PRIMARY_CLIPBOARD           FALSE
+

Modified: xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/history.c
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/history.c	2009-01-14 15:44:17 UTC (rev 6457)
+++ xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/history.c	2009-01-14 19:39:49 UTC (rev 6458)
@@ -26,6 +26,8 @@
 #include <exo/exo.h>
 #include <libxfce4util/libxfce4util.h>
 
+#include "common.h"
+
 #include "history.h"
 
 /*
@@ -394,21 +396,21 @@
                                    g_param_spec_uint ("max-texts-in-history",
                                                       "MaxTextsInHistory",
                                                       "The number of maximum texts in history",
-                                                      5, 100, 10,
+                                                      5, 100, DEFAULT_MAX_TEXTS_IN_HISTORY,
                                                       G_PARAM_CONSTRUCT|G_PARAM_READWRITE));
   g_object_class_install_property (object_class,
                                    MAX_IMAGES_IN_HISTORY,
                                    g_param_spec_uint ("max-images-in-history",
                                                       "MaxImagesInHistory",
                                                       "The number of maximum images in history",
-                                                      0, 5, 1,
+                                                      0, 5, DEFAULT_MAX_IMAGES_IN_HISTORY,
                                                       G_PARAM_CONSTRUCT|G_PARAM_READWRITE));
   g_object_class_install_property (object_class,
                                    SAVE_ON_QUIT,
                                    g_param_spec_boolean ("save-on-quit",
                                                          "SaveOnQuit",
                                                          "True if the history must be saved on quit",
-                                                         TRUE,
+                                                         DEFAULT_SAVE_ON_QUIT,
                                                          G_PARAM_CONSTRUCT|G_PARAM_READWRITE));
 }
 

Modified: xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c	2009-01-14 15:44:17 UTC (rev 6457)
+++ xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c	2009-01-14 19:39:49 UTC (rev 6458)
@@ -26,7 +26,10 @@
 #include <libxfce4panel/xfce-panel-plugin.h>
 #include <libxfce4panel/xfce-panel-convenience.h>
 #include <xfconf/xfconf.h>
+#include <glade/glade.h>
 
+#include "common.h"
+#include "settings-dialog_glade.h"
 #include "collector.h"
 #include "history.h"
 #include "menu.h"
@@ -63,6 +66,8 @@
 static gboolean         panel_plugin_set_size           (XfcePanelPlugin *panel_plugin,
                                                          int size,
                                                          MyPlugin *plugin);
+static void             panel_plugin_configure          (XfcePanelPlugin *panel_plugin,
+                                                         MyPlugin *plugin);
 static void             panel_plugin_load               (XfcePanelPlugin *panel_plugin,
                                                          MyPlugin *plugin);
 static void             panel_plugin_save               (XfcePanelPlugin *panel_plugin,
@@ -118,8 +123,8 @@
 
   /* ClipmanCollector */
   plugin->collector = clipman_collector_get ();
-  xfconf_g_property_bind (plugin->channel, "/settings/ignore-primary-clipboard",
-                          G_TYPE_BOOLEAN, plugin->collector, "ignore-primary-clipboard");
+  xfconf_g_property_bind (plugin->channel, "/settings/add-primary-clipboard",
+                          G_TYPE_BOOLEAN, plugin->collector, "add-primary-clipboard");
 
   /* Panel Button */
   plugin->button = xfce_create_panel_toggle_button ();
@@ -139,6 +144,9 @@
   /* Panel Plugin Signals */
   g_signal_connect (panel_plugin, "size-changed",
                     G_CALLBACK (panel_plugin_set_size), plugin);
+  xfce_panel_plugin_menu_show_configure (panel_plugin);
+  g_signal_connect (panel_plugin, "configure-plugin",
+                    G_CALLBACK (panel_plugin_configure), plugin);
   g_signal_connect (panel_plugin, "save",
                     G_CALLBACK (panel_plugin_save), plugin);
   g_signal_connect (panel_plugin, "free-data",
@@ -169,6 +177,44 @@
 }
 
 static void
+panel_plugin_configure (XfcePanelPlugin *panel_plugin,
+                        MyPlugin *plugin)
+{
+  GladeXML *gxml;
+  GtkWidget *dialog;
+
+  /* Get GladeXML and the dialog */
+  gxml = glade_xml_new_from_buffer (settings_dialog_glade, settings_dialog_glade_length, NULL, NULL);
+  dialog = glade_xml_get_widget (gxml, "settings-dialog");
+
+  /* Set default values */
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (gxml, "save-on-quit")),
+                                DEFAULT_SAVE_ON_QUIT);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (gxml, "add-selections")),
+                                DEFAULT_ADD_PRIMARY_CLIPBOARD);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (gxml, "store-an-image")),
+                                (gboolean)DEFAULT_MAX_IMAGES_IN_HISTORY);
+  gtk_spin_button_set_value (GTK_SPIN_BUTTON (glade_xml_get_widget (gxml, "max-texts-in-history")),
+                             (gdouble)DEFAULT_MAX_TEXTS_IN_HISTORY);
+
+  /* Bind the properties to Xfconf */
+  xfconf_g_property_bind (plugin->channel, "/settings/save-on-quit", G_TYPE_BOOLEAN,
+                          G_OBJECT (glade_xml_get_widget (gxml, "save-on-quit")), "active");
+  xfconf_g_property_bind (plugin->channel, "/settings/add-primary-clipboard", G_TYPE_BOOLEAN,
+                          G_OBJECT (glade_xml_get_widget (gxml, "add-selections")), "active");
+  xfconf_g_property_bind (plugin->channel, "/settings/max-images-in-history", G_TYPE_UINT,
+                          G_OBJECT (glade_xml_get_widget (gxml, "store-an-image")), "active");
+  xfconf_g_property_bind (plugin->channel, "/settings/max-texts-in-history", G_TYPE_UINT,
+                          G_OBJECT (glade_xml_get_widget (gxml, "max-texts-in-history")), "value");
+
+  /* Run the dialog */
+  gtk_dialog_run (GTK_DIALOG (dialog));
+
+  gtk_widget_destroy (dialog);
+  g_object_unref (gxml);
+}
+
+static void
 panel_plugin_load (XfcePanelPlugin *panel_plugin,
                    MyPlugin *plugin)
 {

Added: xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/settings-dialog.glade
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/settings-dialog.glade	                        (rev 0)
+++ xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/settings-dialog.glade	2009-01-14 19:39:49 UTC (rev 6458)
@@ -0,0 +1,243 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
+<!--Generated with glade3 3.4.5 on Wed Jan 14 20:13:28 2009 -->
+<glade-interface>
+  <requires lib="xfce4"/>
+  <widget class="XfceTitledDialog" id="settings-dialog">
+    <property name="title">Clipman</property>
+    <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
+    <property name="icon_name">gtk-paste</property>
+    <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+    <property name="has_separator">False</property>
+    <property name="subtitle" translatable="yes">Configure the plugin</property>
+    <child internal-child="vbox">
+      <widget class="GtkVBox" id="dialog-vbox1">
+        <property name="visible">True</property>
+        <property name="spacing">2</property>
+        <child>
+          <widget class="GtkNotebook" id="notebook1">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="border_width">6</property>
+            <property name="show_tabs">False</property>
+            <child>
+              <widget class="GtkVBox" id="vbox1">
+                <property name="visible">True</property>
+                <property name="border_width">6</property>
+                <property name="spacing">2</property>
+                <child>
+                  <widget class="GtkFrame" id="frame1">
+                    <property name="visible">True</property>
+                    <property name="label_xalign">0</property>
+                    <property name="shadow_type">GTK_SHADOW_NONE</property>
+                    <child>
+                      <widget class="GtkAlignment" id="alignment1">
+                        <property name="visible">True</property>
+                        <property name="top_padding">6</property>
+                        <property name="left_padding">12</property>
+                        <child>
+                          <widget class="GtkVBox" id="vbox2">
+                            <property name="visible">True</property>
+                            <property name="spacing">6</property>
+                            <child>
+                              <widget class="GtkCheckButton" id="save-on-quit">
+                                <property name="visible">True</property>
+                                <property name="can_focus">True</property>
+                                <property name="tooltip" translatable="yes">If checked, this option will restore the history on every new Xfce session</property>
+                                <property name="label" translatable="yes">Save on _quit</property>
+                                <property name="use_underline">True</property>
+                                <property name="response_id">0</property>
+                                <property name="draw_indicator">True</property>
+                              </widget>
+                            </child>
+                            <child>
+                              <widget class="GtkCheckButton" id="add-selections">
+                                <property name="visible">True</property>
+                                <property name="can_focus">True</property>
+                                <property name="tooltip" translatable="yes">If checked, the selections will go into the history. This behavior can be very verbose and make the whole history unusable. However it can be useful if you wish to always copy the selections to the default clipboard, in a way that you can paste what you select.</property>
+                                <property name="label" translatable="yes">Add _selections</property>
+                                <property name="use_underline">True</property>
+                                <property name="response_id">0</property>
+                                <property name="draw_indicator">True</property>
+                              </widget>
+                              <packing>
+                                <property name="position">1</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <widget class="GtkCheckButton" id="store-an-image">
+                                <property name="visible">True</property>
+                                <property name="can_focus">True</property>
+                                <property name="tooltip" translatable="yes">If checked, this option allows to store one image inside the history</property>
+                                <property name="label" translatable="yes">Store an _image</property>
+                                <property name="use_underline">True</property>
+                                <property name="response_id">0</property>
+                                <property name="draw_indicator">True</property>
+                              </widget>
+                              <packing>
+                                <property name="position">2</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <widget class="GtkHBox" id="hbox1">
+                                <property name="visible">True</property>
+                                <child>
+                                  <widget class="GtkLabel" id="label5">
+                                    <property name="visible">True</property>
+                                    <property name="xalign">0</property>
+                                    <property name="label" translatable="yes">Size of the _history:</property>
+                                    <property name="use_underline">True</property>
+                                    <property name="mnemonic_widget">max-texts-in-history</property>
+                                  </widget>
+                                </child>
+                                <child>
+                                  <widget class="GtkSpinButton" id="max-texts-in-history">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">True</property>
+                                    <property name="adjustment">6 5 100 1 10 10</property>
+                                  </widget>
+                                  <packing>
+                                    <property name="expand">False</property>
+                                    <property name="fill">False</property>
+                                    <property name="position">1</property>
+                                  </packing>
+                                </child>
+                              </widget>
+                              <packing>
+                                <property name="position">3</property>
+                              </packing>
+                            </child>
+                          </widget>
+                        </child>
+                      </widget>
+                    </child>
+                    <child>
+                      <widget class="GtkLabel" id="label3">
+                        <property name="visible">True</property>
+                        <property name="label" translatable="yes"><b>History</b></property>
+                        <property name="use_markup">True</property>
+                      </widget>
+                      <packing>
+                        <property name="type">label_item</property>
+                      </packing>
+                    </child>
+                  </widget>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                  </packing>
+                </child>
+              </widget>
+            </child>
+            <child>
+              <widget class="GtkLabel" id="label1">
+                <property name="visible">True</property>
+                <property name="label" translatable="yes">General</property>
+              </widget>
+              <packing>
+                <property name="type">tab</property>
+                <property name="tab_fill">False</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="GtkVBox" id="vbox3">
+                <property name="visible">True</property>
+                <property name="sensitive">False</property>
+                <property name="border_width">6</property>
+                <child>
+                  <widget class="GtkScrolledWindow" id="scrolledwindow1">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                    <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+                    <property name="shadow_type">GTK_SHADOW_IN</property>
+                    <child>
+                      <widget class="GtkTreeView" id="actions">
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="rules_hint">True</property>
+                      </widget>
+                    </child>
+                  </widget>
+                </child>
+                <child>
+                  <widget class="GtkHButtonBox" id="hbuttonbox1">
+                    <property name="visible">True</property>
+                    <property name="border_width">6</property>
+                    <property name="homogeneous">True</property>
+                    <property name="layout_style">GTK_BUTTONBOX_SPREAD</property>
+                    <child>
+                      <widget class="GtkButton" id="button2">
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="receives_default">True</property>
+                        <property name="label" translatable="yes">gtk-add</property>
+                        <property name="use_stock">True</property>
+                        <property name="response_id">0</property>
+                      </widget>
+                    </child>
+                    <child>
+                      <widget class="GtkButton" id="button3">
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="receives_default">True</property>
+                        <property name="label" translatable="yes">gtk-remove</property>
+                        <property name="use_stock">True</property>
+                        <property name="response_id">0</property>
+                      </widget>
+                      <packing>
+                        <property name="position">1</property>
+                      </packing>
+                    </child>
+                  </widget>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
+              </widget>
+              <packing>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="GtkLabel" id="label2">
+                <property name="visible">True</property>
+                <property name="label" translatable="yes">Actions</property>
+              </widget>
+              <packing>
+                <property name="type">tab</property>
+                <property name="position">1</property>
+                <property name="tab_fill">False</property>
+              </packing>
+            </child>
+          </widget>
+          <packing>
+            <property name="position">1</property>
+          </packing>
+        </child>
+        <child internal-child="action_area">
+          <widget class="GtkHButtonBox" id="dialog-action_area1">
+            <property name="visible">True</property>
+            <property name="layout_style">GTK_BUTTONBOX_END</property>
+            <child>
+              <widget class="GtkButton" id="button1">
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="label" translatable="yes">gtk-close</property>
+                <property name="use_stock">True</property>
+                <property name="response_id">0</property>
+              </widget>
+            </child>
+          </widget>
+          <packing>
+            <property name="expand">False</property>
+            <property name="pack_type">GTK_PACK_END</property>
+          </packing>
+        </child>
+      </widget>
+    </child>
+  </widget>
+</glade-interface>




More information about the Goodies-commits mailing list