gtk_tooltips_set_tips -> gtk_tooltips_set_tip conversion

-timj
This commit is contained in:
Tim Janik 1998-02-21 03:42:10 +00:00
parent 10c4bc6e8c
commit 118a5668dd
9 changed files with 21 additions and 18 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);
}

View File

@ -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,

View File

@ -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,

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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