From 118a5668dd15c6e8a859948c364eccf53886587b Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sat, 21 Feb 1998 03:42:10 +0000 Subject: [PATCH] gtk_tooltips_set_tips -> gtk_tooltips_set_tip conversion -timj --- app/display/gimpdisplayshell-draw.c | 9 +++++---- app/display/gimpdisplayshell.c | 9 +++++---- app/interface.c | 9 +++++---- plug-ins/AlienMap/AlienMap.c | 2 +- plug-ins/CML_explorer/CML_explorer.c | 2 +- plug-ins/common/CML_explorer.c | 2 +- plug-ins/common/polar.c | 2 +- plug-ins/polar/polar.c | 2 +- plug-ins/randomize/gpc.c | 2 +- 9 files changed, 21 insertions(+), 18 deletions(-) diff --git a/app/display/gimpdisplayshell-draw.c b/app/display/gimpdisplayshell-draw.c index eb970e914d..39fa30b713 100644 --- a/app/display/gimpdisplayshell-draw.c +++ b/app/display/gimpdisplayshell-draw.c @@ -317,9 +317,10 @@ create_color_area (GtkWidget *parent) col_area = color_area_create (54, 42, default_pixmap, swap_pixmap); gtk_container_add (GTK_CONTAINER (alignment), col_area); - gtk_tooltips_set_tips (tool_tips, col_area, "Foreground & background colors. The small black " - "and white squares reset colors. The small arrows swap colors. Double " - "click to change colors."); + gtk_tooltips_set_tip (tool_tips, col_area, "Foreground & background colors. The small black " + "and white squares reset colors. The small arrows swap colors. Double " + "click to change colors.", + NULL); gtk_widget_show (col_area); gtk_widget_show (alignment); gtk_widget_show (frame); @@ -373,7 +374,7 @@ create_tools (GtkWidget *parent) (GtkSignalFunc) tools_button_press, tool_data[i].callback_data); - gtk_tooltips_set_tips (tool_tips, button, tool_data[i].tool_desc); + gtk_tooltips_set_tip (tool_tips, button, tool_data[i].tool_desc, NULL); gtk_widget_show (pixmap); gtk_widget_show (alignment); diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c index eb970e914d..39fa30b713 100644 --- a/app/display/gimpdisplayshell.c +++ b/app/display/gimpdisplayshell.c @@ -317,9 +317,10 @@ create_color_area (GtkWidget *parent) col_area = color_area_create (54, 42, default_pixmap, swap_pixmap); gtk_container_add (GTK_CONTAINER (alignment), col_area); - gtk_tooltips_set_tips (tool_tips, col_area, "Foreground & background colors. The small black " - "and white squares reset colors. The small arrows swap colors. Double " - "click to change colors."); + gtk_tooltips_set_tip (tool_tips, col_area, "Foreground & background colors. The small black " + "and white squares reset colors. The small arrows swap colors. Double " + "click to change colors.", + NULL); gtk_widget_show (col_area); gtk_widget_show (alignment); gtk_widget_show (frame); @@ -373,7 +374,7 @@ create_tools (GtkWidget *parent) (GtkSignalFunc) tools_button_press, tool_data[i].callback_data); - gtk_tooltips_set_tips (tool_tips, button, tool_data[i].tool_desc); + gtk_tooltips_set_tip (tool_tips, button, tool_data[i].tool_desc, NULL); gtk_widget_show (pixmap); gtk_widget_show (alignment); diff --git a/app/interface.c b/app/interface.c index eb970e914d..39fa30b713 100644 --- a/app/interface.c +++ b/app/interface.c @@ -317,9 +317,10 @@ create_color_area (GtkWidget *parent) col_area = color_area_create (54, 42, default_pixmap, swap_pixmap); gtk_container_add (GTK_CONTAINER (alignment), col_area); - gtk_tooltips_set_tips (tool_tips, col_area, "Foreground & background colors. The small black " - "and white squares reset colors. The small arrows swap colors. Double " - "click to change colors."); + gtk_tooltips_set_tip (tool_tips, col_area, "Foreground & background colors. The small black " + "and white squares reset colors. The small arrows swap colors. Double " + "click to change colors.", + NULL); gtk_widget_show (col_area); gtk_widget_show (alignment); gtk_widget_show (frame); @@ -373,7 +374,7 @@ create_tools (GtkWidget *parent) (GtkSignalFunc) tools_button_press, tool_data[i].callback_data); - gtk_tooltips_set_tips (tool_tips, button, tool_data[i].tool_desc); + gtk_tooltips_set_tip (tool_tips, button, tool_data[i].tool_desc, NULL); gtk_widget_show (pixmap); gtk_widget_show (alignment); diff --git a/plug-ins/AlienMap/AlienMap.c b/plug-ins/AlienMap/AlienMap.c index 92272a5e09..4e02ea0bf6 100644 --- a/plug-ins/AlienMap/AlienMap.c +++ b/plug-ins/AlienMap/AlienMap.c @@ -627,7 +627,7 @@ static void set_tooltip (GtkTooltips *tooltips, GtkWidget *widget, const char *desc) { if (desc && desc[0]) - gtk_tooltips_set_tips (tooltips, widget, (char *) desc); + gtk_tooltips_set_tip (tooltips, widget, (char *) desc, NULL); } diff --git a/plug-ins/CML_explorer/CML_explorer.c b/plug-ins/CML_explorer/CML_explorer.c index 9db5353c97..0821a515c4 100644 --- a/plug-ins/CML_explorer/CML_explorer.c +++ b/plug-ins/CML_explorer/CML_explorer.c @@ -1498,7 +1498,7 @@ DIALOG () random_sensitives[4].logic = TRUE; tooltips = gtkW_tooltips_new (frame); - gtk_tooltips_set_tips (tooltips, button, "\"Fix seed\" button is an alias of me.\nThe same seed produces the same image, if (1) the widths of images are same (this is the reason why image on drawable is different from preview), and (2) all mutation rates equal to zero."); + gtk_tooltips_set_tip (tooltips, button, "\"Fix seed\" button is an alias of me.\nThe same seed produces the same image, if (1) the widths of images are same (this is the reason why image on drawable is different from preview), and (2) all mutation rates equal to zero.",NULL); gtk_tooltips_enable (tooltips); } gtk_table_attach (GTK_TABLE (table), subframe, 0, 1, index, index + 1, diff --git a/plug-ins/common/CML_explorer.c b/plug-ins/common/CML_explorer.c index 9db5353c97..0821a515c4 100644 --- a/plug-ins/common/CML_explorer.c +++ b/plug-ins/common/CML_explorer.c @@ -1498,7 +1498,7 @@ DIALOG () random_sensitives[4].logic = TRUE; tooltips = gtkW_tooltips_new (frame); - gtk_tooltips_set_tips (tooltips, button, "\"Fix seed\" button is an alias of me.\nThe same seed produces the same image, if (1) the widths of images are same (this is the reason why image on drawable is different from preview), and (2) all mutation rates equal to zero."); + gtk_tooltips_set_tip (tooltips, button, "\"Fix seed\" button is an alias of me.\nThe same seed produces the same image, if (1) the widths of images are same (this is the reason why image on drawable is different from preview), and (2) all mutation rates equal to zero.",NULL); gtk_tooltips_enable (tooltips); } gtk_table_attach (GTK_TABLE (table), subframe, 0, 1, index, index + 1, diff --git a/plug-ins/common/polar.c b/plug-ins/common/polar.c index 4616a7470a..47693d6464 100644 --- a/plug-ins/common/polar.c +++ b/plug-ins/common/polar.c @@ -1253,5 +1253,5 @@ static void set_tooltip (GtkTooltips *tooltips, GtkWidget *widget, const char *desc) { if (desc && desc[0]) - gtk_tooltips_set_tips (tooltips, widget, (char *) desc); + gtk_tooltips_set_tip (tooltips, widget, (char *) desc, NULL); } diff --git a/plug-ins/polar/polar.c b/plug-ins/polar/polar.c index 4616a7470a..47693d6464 100644 --- a/plug-ins/polar/polar.c +++ b/plug-ins/polar/polar.c @@ -1253,5 +1253,5 @@ static void set_tooltip (GtkTooltips *tooltips, GtkWidget *widget, const char *desc) { if (desc && desc[0]) - gtk_tooltips_set_tips (tooltips, widget, (char *) desc); + gtk_tooltips_set_tip (tooltips, widget, (char *) desc, NULL); } diff --git a/plug-ins/randomize/gpc.c b/plug-ins/randomize/gpc.c index 6790c3eaae..7dd6bed28a 100644 --- a/plug-ins/randomize/gpc.c +++ b/plug-ins/randomize/gpc.c @@ -135,7 +135,7 @@ void gpc_set_tooltip(GtkWidget *widget, const char *tip) { if (tip && tip[0]) - gtk_tooltips_set_tips(tips, widget, (char *) tip); + gtk_tooltips_set_tip (tips, widget, (char *) tip,NULL); } void