[maemo-commits] [maemo-commits] r13318 - in projects/haf/trunk/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Aug 21 15:11:26 EEST 2007
Author: mdk
Date: 2007-08-21 15:11:24 +0300 (Tue, 21 Aug 2007)
New Revision: 13318

Modified:
   projects/haf/trunk/hildon-1/ChangeLog
   projects/haf/trunk/hildon-1/src/hildon-find-toolbar.c
Log:
Puting the combobox inside alignment to not expand vertically. Adding some extra space to the find toolbar buttons to make them thumbable. Fixes NB#66060.


Modified: projects/haf/trunk/hildon-1/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-1/ChangeLog	2007-08-21 11:47:59 UTC (rev 13317)
+++ projects/haf/trunk/hildon-1/ChangeLog	2007-08-21 12:11:24 UTC (rev 13318)
@@ -1,5 +1,11 @@
 2007-08-21  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
 
+	* src/hildon-find-toolbar.c: Puting the combobox inside alignment to not
+	expand vertically. Adding some extra space to the find toolbar buttons to
+	make them thumbable. Fixes NB#66060.
+
+2007-08-21  Michael Dominic Kostrzewa  <michael.kostrzewa at nokia.com> 
+
 	* src/hildon-calendar-popup.c: Replacing the "Done" button in the calendar
 	popup with "Ok" and "Cancel". Fixes NB#59299.
 

Modified: projects/haf/trunk/hildon-1/src/hildon-find-toolbar.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-find-toolbar.c	2007-08-21 11:47:59 UTC (rev 13317)
+++ projects/haf/trunk/hildon-1/src/hildon-find-toolbar.c	2007-08-21 12:11:24 UTC (rev 13318)
@@ -683,6 +683,7 @@
 {
     GtkToolItem *label_container;
     GtkToolItem *entry_combo_box_container;
+    GtkAlignment *alignment;
 
     HildonFindToolbarPrivate *priv = HILDON_FIND_TOOLBAR_GET_PRIVATE (self);
     g_assert (priv);
@@ -710,10 +711,13 @@
 #endif
 
     entry_combo_box_container = gtk_tool_item_new ();
+    alignment = gtk_alignment_new (0, 0.5, 1, 0);
 
     gtk_tool_item_set_expand (entry_combo_box_container, TRUE);
+    gtk_container_add (GTK_CONTAINER (alignment),
+            GTK_WIDGET (priv->entry_combo_box));
     gtk_container_add (GTK_CONTAINER (entry_combo_box_container),
-            GTK_WIDGET (priv->entry_combo_box));
+            GTK_WIDGET (alignment));
     gtk_widget_show_all(GTK_WIDGET (entry_combo_box_container));
     gtk_toolbar_insert (GTK_TOOLBAR (self), entry_combo_box_container, -1);
     g_signal_connect (hildon_find_toolbar_get_entry (priv),
@@ -730,6 +734,7 @@
             G_CALLBACK(hildon_find_toolbar_emit_search), self);
     gtk_widget_show_all( GTK_WIDGET(priv->find_button));
     gtk_toolbar_insert ( GTK_TOOLBAR(self), priv->find_button, -1);
+    gtk_widget_set_size_request (GTK_WIDGET (priv->find_button), 72, -1);
     if ( GTK_WIDGET_CAN_FOCUS( GTK_BIN(priv->find_button)->child) )
         GTK_WIDGET_UNSET_FLAGS(
                 GTK_BIN(priv->find_button)->child, GTK_CAN_FOCUS);
@@ -744,6 +749,7 @@
             gtk_image_new_from_icon_name ("qgn_toolb_gene_close",
                 HILDON_ICON_SIZE_TOOLBAR),
             "Close");
+    gtk_widget_set_size_request (GTK_WIDGET (priv->close_button), 72, -1);
     g_signal_connect(priv->close_button, "clicked",
             G_CALLBACK(hildon_find_toolbar_emit_close), self);
     gtk_widget_show_all(GTK_WIDGET(priv->close_button));


More information about the maemo-commits mailing list