]> spindle.queued.net Git - midori/commitdiff
Add tooltips to Enable and Disable buttons
authorChristian Dywan <christian@twotoasts.de>
Tue, 10 Mar 2009 18:35:11 +0000 (19:35 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 10 Mar 2009 18:35:11 +0000 (19:35 +0100)
panels/midori-addons.c
panels/midori-console.c
panels/midori-extensions.c

index 4d04b1dd8b8fb7f353d09bd74f531b908140e6bd..2e612313a61124d7fcd0ad7d7db3e0d30ab935cc 100644 (file)
@@ -1003,6 +1003,7 @@ midori_addons_get_toolbar (MidoriViewable* addons)
         /* enable button */
         toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_YES);
         gtk_tool_button_set_label (GTK_TOOL_BUTTON (toolitem), _("_Enable"));
+        gtk_widget_set_tooltip_text (GTK_WIDGET (toolitem), _("Enable"));
         g_signal_connect (toolitem, "clicked",
             G_CALLBACK (midori_addons_button_status_clicked_cb), addons);
         gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
@@ -1012,6 +1013,7 @@ midori_addons_get_toolbar (MidoriViewable* addons)
         /* disable button */
         toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_NO);
         gtk_tool_button_set_label (GTK_TOOL_BUTTON (toolitem), _("_Disable"));
+        gtk_widget_set_tooltip_text (GTK_WIDGET (toolitem), _("Disable"));
         g_signal_connect (toolitem, "clicked",
             G_CALLBACK (midori_addons_button_status_clicked_cb), addons);
         gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
index 4946caf2580a01645f98ba9a93327f9a27f4e0b7..59dddc2d26a68f54611f05e62cc6a4c1d2cf92f1 100644 (file)
@@ -337,11 +337,14 @@ midori_console_add (MidoriConsole* console,
                     gint           line,
                     const gchar*   source_id)
 {
+    GtkTreeView* treeview;
+    GtkTreeModel* model;
+
     g_return_if_fail (MIDORI_IS_CONSOLE (console));
 
-    GtkTreeView* treeview = GTK_TREE_VIEW (console->treeview);
-    GtkTreeModel* treemodel = gtk_tree_view_get_model (treeview);
-    gtk_tree_store_insert_with_values (GTK_TREE_STORE (treemodel),
+    treeview = GTK_TREE_VIEW (console->treeview);
+    model = gtk_tree_view_get_model (treeview);
+    gtk_tree_store_insert_with_values (GTK_TREE_STORE (model),
                                        NULL, NULL, G_MAXINT,
                                        0, message, 1, line, 2, source_id, -1);
 }
index 45afa567aca97abd9a440113f83eca8fa927ace9..fd4703b3f8d200eddbd653a23bbc9db49e487e46 100644 (file)
@@ -142,6 +142,7 @@ midori_extensions_get_toolbar (MidoriViewable* extensions)
         /* enable button */
         toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_YES);
         gtk_tool_button_set_label (GTK_TOOL_BUTTON (toolitem), _("_Enable"));
+        gtk_widget_set_tooltip_text (GTK_WIDGET (toolitem), _("Enable"));
         g_signal_connect (toolitem, "clicked",
             G_CALLBACK (midori_extensions_button_status_clicked_cb), extensions);
         gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
@@ -151,6 +152,7 @@ midori_extensions_get_toolbar (MidoriViewable* extensions)
         /* disable button */
         toolitem = gtk_tool_button_new_from_stock (GTK_STOCK_NO);
         gtk_tool_button_set_label (GTK_TOOL_BUTTON (toolitem), _("_Disable"));
+        gtk_widget_set_tooltip_text (GTK_WIDGET (toolitem), _("Disable"));
         g_signal_connect (toolitem, "clicked",
             G_CALLBACK (midori_extensions_button_status_clicked_cb), extensions);
         gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);