evolution r35549 - in trunk/plugins: attachment-reminder plugin-manager



Author: jjohnny
Date: Mon May 26 11:20:45 2008
New Revision: 35549
URL: http://svn.gnome.org/viewvc/evolution?rev=35549&view=rev

Log:
Fix for Bug 496476 : Let the plugin configure widgets expand (resize).


Modified:
   trunk/plugins/attachment-reminder/ChangeLog
   trunk/plugins/attachment-reminder/attachment-reminder.c
   trunk/plugins/attachment-reminder/attachment-reminder.glade
   trunk/plugins/plugin-manager/ChangeLog
   trunk/plugins/plugin-manager/plugin-manager.c

Modified: trunk/plugins/attachment-reminder/attachment-reminder.c
==============================================================================
--- trunk/plugins/attachment-reminder/attachment-reminder.c	(original)
+++ trunk/plugins/attachment-reminder/attachment-reminder.c	Mon May 26 11:20:45 2008
@@ -55,7 +55,6 @@
 	GtkWidget   *clue_add;
 	GtkWidget   *clue_edit;
 	GtkWidget   *clue_remove;
-	GtkWidget   *clue_container;
 	GtkListStore *store;
 } UIData;
 
@@ -504,11 +503,10 @@
 	}
 
 	/* Add the list here */
-	ui->clue_container = glade_xml_get_widget (ui->xml, "clue_container");
 
 	hbox = gtk_vbox_new (FALSE, 0);
 
-	gtk_box_pack_start (GTK_BOX (hbox), glade_xml_get_widget (ui->xml, "reminder_configuration_box"), FALSE, FALSE, 0);
+	gtk_box_pack_start (GTK_BOX (hbox), glade_xml_get_widget (ui->xml, "reminder_configuration_box"), TRUE, TRUE, 0);
 
 	/* to let free data properly on destroy of configuration widget */
 	g_object_set_data_full (G_OBJECT (hbox), "myui-data", ui, destroy_ui_data);

Modified: trunk/plugins/attachment-reminder/attachment-reminder.glade
==============================================================================
--- trunk/plugins/attachment-reminder/attachment-reminder.glade	(original)
+++ trunk/plugins/attachment-reminder/attachment-reminder.glade	Mon May 26 11:20:45 2008
@@ -12,17 +12,23 @@
         <property name="visible">True</property>
         <property name="spacing">5</property>
         <child>
-          <placeholder/>
-        </child>
-        <child>
-          <widget class="GtkTable" id="clue_container">
+          <widget class="GtkHBox" id="clue_container">
             <property name="visible">True</property>
-            <property name="n_rows">1</property>
-            <property name="n_columns">3</property>
-            <property name="column_spacing">7</property>
-            <property name="row_spacing">6</property>
+            <property name="spacing">6</property>
             <child>
-              <placeholder/>
+              <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>
+                <child>
+                  <widget class="GtkTreeView" id="clue_treeview">
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="border_width">1</property>
+                  </widget>
+                </child>
+              </widget>
             </child>
             <child>
               <widget class="GtkVButtonBox" id="vbuttonbox2">
@@ -67,38 +73,11 @@
                 </child>
               </widget>
               <packing>
-                <property name="left_attach">2</property>
-                <property name="right_attach">3</property>
-                <property name="x_options"></property>
-                <property name="y_options"></property>
-              </packing>
-            </child>
-            <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>
-                <child>
-                  <widget class="GtkTreeView" id="clue_treeview">
-                    <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="border_width">1</property>
-                  </widget>
-                </child>
-              </widget>
-              <packing>
-                <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
-                <property name="y_options">GTK_FILL</property>
+                <property name="expand">False</property>
+                <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>
     </child>

Modified: trunk/plugins/plugin-manager/plugin-manager.c
==============================================================================
--- trunk/plugins/plugin-manager/plugin-manager.c	(original)
+++ trunk/plugins/plugin-manager/plugin-manager.c	Mon May 26 11:20:45 2008
@@ -304,7 +304,7 @@
 			cfg_widget = def_configure_label;
 		} else {
 			gtk_widget_hide (cfg_widget);
-			gtk_box_pack_start (GTK_BOX (configure_page), cfg_widget, FALSE, FALSE, 6);
+			gtk_box_pack_start (GTK_BOX (configure_page), cfg_widget, TRUE, TRUE, 6);
 		}
 
 		gtk_list_store_append (store, &iter);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]