heavyweight) GtkTooltips.
gtk_widget_set_style(choose_search_entry, tool_style);
g_signal_connect(choose_search_entry, "changed",
G_CALLBACK(choose_search_entry_changed), 0);
- gtk_tooltips_set_tip(tips, choose_search_entry,
- "Enter search terms here; search is automatic", "");
+ gtk_widget_set_tooltip_text(choose_search_entry,
+ "Enter search terms here; search is automatic");
/* Cancel button to clear the search */
choose_clear = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
gtk_widget_set_style(choose_clear, tool_style);
g_signal_connect(G_OBJECT(choose_clear), "clicked",
G_CALLBACK(choose_clear_clicked), 0);
- gtk_tooltips_set_tip(tips, choose_clear, "Clear search terms", "");
+ gtk_widget_set_tooltip_text(choose_clear, "Clear search terms");
/* Up and down buttons to find previous/next results; initially they are not
* usable as there are no search results. */
gtk_scale_set_digits(GTK_SCALE(balance_widget), 10);
gtk_widget_set_size_request(volume_widget, 192, -1);
gtk_widget_set_size_request(balance_widget, 192, -1);
- gtk_tooltips_set_tip(tips, volume_widget, "Volume", "");
- gtk_tooltips_set_tip(tips, balance_widget, "Balance", "");
+ gtk_widget_set_tooltip_text(volume_widget, "Volume");
+ gtk_widget_set_tooltip_text(balance_widget, "Balance");
gtk_box_pack_start(GTK_BOX(hbox), volume_widget, FALSE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), balance_widget, FALSE, TRUE, 0);
/* space updates rather than hammering the server */
* state is immediately displayed. sensitive and GTK_WIDGET_SENSITIVE show
* it to be in the correct state, so I think this is may be a GTK+ bug. */
if(icon->tip_on)
- gtk_tooltips_set_tip(tips, icon->button,
- on ? icon->tip_on : icon->tip_off, "");
+ gtk_widget_set_tooltip_text(icon->button,
+ on ? icon->tip_on : icon->tip_off);
gtk_widget_set_sensitive(icon->button, sensitive);
/* Icons with an associated menu item */
if(icon->item) {
/** @brief Current rights bitmap */
rights_type last_rights;
-/** @brief Global tooltip group */
-GtkTooltips *tips;
-
/** @brief True if RTP play is available
*
* This is a bit of a bodge...
/* periodic operations (e.g. expiring the cache, checking local volume) */
g_timeout_add(600000/*milliseconds*/, periodic_slow, 0);
g_timeout_add(1000/*milliseconds*/, periodic_fast, 0);
- /* global tooltips */
- tips = gtk_tooltips_new();
make_toplevel_window();
/* reset styles now everything has its name */
gtk_rc_reset_styles(gtk_settings_get_for_screen(gdk_screen_get_default()));
extern int volume_l, volume_r; /* current volume */
extern double goesupto; /* volume upper bound */
extern int choosealpha; /* break up choose by letter */
-extern GtkTooltips *tips;
extern int rtp_supported;
extern int rtp_is_running;
extern GtkItemFactory *mainmenufactory;
gtk_widget_set_style(content, tool_style);
gtk_container_add(GTK_CONTAINER(button), content);
if(tip)
- gtk_tooltips_set_tip(tips, button, tip, "");
+ gtk_widget_set_tooltip_text(button, tip);
return button;
}
g_signal_connect(G_OBJECT(buttons[n].widget), "clicked",
G_CALLBACK(buttons[n].clicked), 0);
gtk_box_pack_start(GTK_BOX(box), buttons[n].widget, FALSE, FALSE, 1);
- gtk_tooltips_set_tip(tips, buttons[n].widget, buttons[n].tip, "");
+ gtk_widget_set_tooltip_text(buttons[n].widget, buttons[n].tip);
}
return box;
}