2007-01-09 [colin] 2.7.0cvs4
[claws.git] / src / gtk / pluginwindow.c
index 175373684b82d0c0cb23da8245339d1c69c1bd04..343d130e10b708cde8014c81572b5491345172ce 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws Team
+ * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail Team
  *
  * 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
@@ -182,7 +182,7 @@ static void load_cb(GtkButton *button, PluginWindow *pluginwindow)
        GList *file_list;
 
        file_list = filesel_select_multiple_files_open_with_filter(
-                       _("Select Plugin to load"), get_plugin_dir(), 
+                       _("Select the Plugins to load"), get_plugin_dir(), 
                        "*." G_MODULE_SUFFIX);
 
        if (file_list) {
@@ -275,6 +275,7 @@ void pluginwindow_create()
        GtkWidget *get_more_btn;
        GtkWidget *desc_lbl;
        static GdkGeometry geometry;
+       GtkTooltips *tooltips;
        
        debug_print("Creating plugins window...\n");
 
@@ -284,6 +285,7 @@ void pluginwindow_create()
        gtk_container_set_border_width(GTK_CONTAINER(window), 8);
        gtk_window_set_title(GTK_WINDOW(window), _("Plugins"));
        gtk_window_set_modal(GTK_WINDOW(window), TRUE);
+       manage_window_set_transient(window);
 
        vbox1 = gtk_vbox_new(FALSE, 4);
        gtk_widget_show(vbox1);
@@ -333,7 +335,7 @@ void pluginwindow_create()
        gtk_container_add(GTK_CONTAINER(scrolledwindow3), plugin_desc);
 
        desc_lbl = gtk_label_new(_("More plugins are available from the "
-                                  "Sylpheed-Claws website."));
+                                  "Claws Mail website."));
        gtk_misc_set_alignment(GTK_MISC(desc_lbl), 0, 0.5);
        gtk_widget_show(desc_lbl);
        gtk_box_pack_start(GTK_BOX(vbox1), desc_lbl, FALSE, FALSE, 0);
@@ -357,7 +359,7 @@ void pluginwindow_create()
                        &close_btn, GTK_STOCK_CLOSE);
        gtk_box_set_spacing(GTK_BOX(hbuttonbox1), 6);
        gtk_widget_show(hbuttonbox1);
-       gtk_box_pack_end (GTK_BOX (hbox3), hbuttonbox1, FALSE, FALSE, 0);
+       gtk_box_pack_end (GTK_BOX (hbox3), hbuttonbox1, TRUE, TRUE, 0);
 
        gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(plugin_desc), GTK_WRAP_WORD);
        gtk_widget_set_sensitive(GTK_WIDGET(unload_btn), FALSE);
@@ -376,6 +378,16 @@ void pluginwindow_create()
        g_signal_connect(G_OBJECT(window), "key_press_event",
                           G_CALLBACK(pluginwindow_key_pressed), pluginwindow);
 
+       tooltips = gtk_tooltips_new();
+
+       gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips),
+                       load_btn,
+                       _("Click here to load one or more plugins"), NULL);
+
+       gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips),
+                       unload_btn,
+                       _("Unload the selected plugin"), NULL);
+
        pluginwindow->window = window;
        pluginwindow->plugin_list_view = plugin_list_view;
        pluginwindow->plugin_desc = plugin_desc;