2008-10-09 [colin] 3.6.0cvs19
[claws.git] / src / prefs_image_viewer.c
index cf3f02b1149ed92f10d067d0eb4afa6a54464016..98deed8910a0575b3002fe3563a3e31501ec5adb 100644 (file)
@@ -58,7 +58,7 @@ static void imageviewer_create_widget_func(PrefsPage * _page,
        GtkWidget *resize_img;
        GtkWidget *inline_img;
        GtkWidget *print_imgs;
-       GtkTooltips *resize_tooltip;
+       CLAWS_TIP_DECL();
 
        table = gtk_table_new(4, 1, FALSE);
        gtk_widget_show(table);
@@ -72,13 +72,10 @@ static void imageviewer_create_widget_func(PrefsPage * _page,
                         (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                         (GtkAttachOptions) (0), 0, 0);
 
-       resize_tooltip = gtk_tooltips_new();
-
        resize_img = gtk_check_button_new_with_label(_("Resize attached images by default"));
        gtk_widget_show(resize_img);
-       gtk_tooltips_set_tip(GTK_TOOLTIPS(resize_tooltip), resize_img,
-                            _("Clicking image toggles scaling"),
-                            NULL);
+       CLAWS_SET_TIP(resize_img,
+                            _("Clicking image toggles scaling"));
        gtk_table_attach(GTK_TABLE(table), resize_img, 0, 1, 1, 2,
                         (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                         (GtkAttachOptions) (0), 0, 0);
@@ -90,7 +87,7 @@ static void imageviewer_create_widget_func(PrefsPage * _page,
                         (GtkAttachOptions) (0), 0, 0);
        
        print_imgs = gtk_check_button_new_with_label(_("Print images"));
-#if !defined(USE_GNOMEPRINT) && GTK_CHECK_VERSION(2,10,0)
+#if GTK_CHECK_VERSION(2,10,0)
        gtk_widget_show(print_imgs);
 #endif
        gtk_table_attach(GTK_TABLE(table), print_imgs, 0, 1, 3, 4,