[goffice] Compilation: kill warnings.



commit d051130f8f436e1d73fd63716222efe9a68a7cd4
Author: Morten Welinder <terra gnome org>
Date:   Thu Mar 21 16:40:49 2013 -0400

    Compilation: kill warnings.
    
    And sneak in a tooltip fix.

 goffice/gtk/go-font-sel.ui  |    4 ++--
 goffice/gtk/go-optionmenu.c |   16 ++++++++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/goffice/gtk/go-font-sel.ui b/goffice/gtk/go-font-sel.ui
index 9be85c4..1e4e88d 100644
--- a/goffice/gtk/go-font-sel.ui
+++ b/goffice/gtk/go-font-sel.ui
@@ -116,8 +116,8 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="has_tooltip">True</property>
-            <property name="tooltip_markup" translatable="yes">Select the size</property>
-            <property name="tooltip_text" translatable="yes">Select the size</property>
+            <property name="tooltip_markup" translatable="yes">Select whether a line should be drawn through 
the text</property>
+            <property name="tooltip_text" translatable="yes">Select whether a line should be drawn through 
the text</property>
             <property name="xalign">0</property>
             <property name="label" translatable="yes">Strikethrough:</property>
             <property name="justify">center</property>
diff --git a/goffice/gtk/go-optionmenu.c b/goffice/gtk/go-optionmenu.c
index f7b05cd..b8c4065 100644
--- a/goffice/gtk/go-optionmenu.c
+++ b/goffice/gtk/go-optionmenu.c
@@ -61,10 +61,22 @@ go_option_menu_new (void)
 }
 
 
+/**
+ * go_option_menu_build:
+ * @first_entry: text for first entry
+ * @...: further values and text
+ *
+ * Returns: (transfer none): a new #GOOptionMenu with a filled-in menu.
+ *
+ * This function takes a %NULL-terminated list of string-integer pairs
+ * and fills in a menu with the given texts.  Each menu entry will
+ * have a data property "value" sets to the given value.  The menu is
+ * then placed inside a new #GOOptionMenu which is then returned.
+ */ 
 GtkWidget *
 go_option_menu_build (const char *first_entry, ...)
 {
-       GtkMenu *m = gtk_menu_new ();
+       GtkWidget *m = gtk_menu_new ();
        GtkWidget *om;
        va_list var_args;
 
@@ -77,7 +89,7 @@ go_option_menu_build (const char *first_entry, ...)
                first_entry = va_arg (var_args, char *);
        }               
        va_end (var_args);
-       gtk_widget_show_all (GTK_WIDGET (m));
+       gtk_widget_show_all (m);
 
        om = go_option_menu_new ();
        go_option_menu_set_menu (GO_OPTION_MENU (om), m);


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