Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
jack-rack
jack-rack-gtk-old-tooltip-fix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jack-rack-gtk-old-tooltip-fix.diff of Package jack-rack
--- src/ui.c-dist 2007-11-28 16:12:42.000000000 +0100 +++ src/ui.c 2007-11-28 16:19:11.000000000 +0100 @@ -212,6 +212,7 @@ ui_init_gui (ui_t * ui, unsigned long ch { GtkWidget *main_box; GtkWidget *toolbar_handle; + GtkTooltips *toolbar_tips; GtkWidget *toolbar; GtkWidget *plugin_scroll; GtkWidget *plugin_viewport; @@ -241,12 +242,18 @@ ui_init_gui (ui_t * ui, unsigned long ch gtk_widget_show (toolbar_handle); gtk_box_pack_start (GTK_BOX (main_box), toolbar_handle, FALSE, FALSE, 0); + toolbar_tips = gtk_tooltips_new (); + toolbar = gtk_toolbar_new (); gtk_container_add (GTK_CONTAINER (toolbar_handle), toolbar); ui->add = gtk_menu_tool_button_new_from_stock (GTK_STOCK_ADD); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), ui->add, -1); +#if 0 gtk_tool_item_set_tooltip_text (ui->add, _("Add a plugin")); +#else + gtk_tool_item_set_tooltip (ui->add, toolbar_tips, _("Add a plugin"), NULL); +#endif ui->toolbar_add_menu = plugin_mgr_get_menu (ui->plugin_mgr, G_CALLBACK (add_cb), ui); gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (ui->add), ui->toolbar_add_menu); g_signal_connect (G_OBJECT (ui->add), "clicked", @@ -257,7 +264,13 @@ ui_init_gui (ui_t * ui, unsigned long ch channel_icon = gtk_image_new_from_file (channel_icon_file); g_free (channel_icon_file); ui->channels = gtk_tool_button_new (channel_icon, _("Channels")); +#if 0 gtk_tool_item_set_tooltip_text (ui->channels, _("Change the number of I/O channels the rack has")); +#else + gtk_tool_item_set_tooltip (ui->channels, toolbar_tips, + _("Change the number of I/O channels the rack has"), + NULL); +#endif gtk_toolbar_insert (GTK_TOOLBAR (toolbar), ui->channels, -1); g_signal_connect (G_OBJECT (ui->channels), "clicked", G_CALLBACK (channel_cb), ui); @@ -265,23 +278,46 @@ ui_init_gui (ui_t * ui, unsigned long ch ui->new = gtk_tool_button_new_from_stock (GTK_STOCK_NEW); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), ui->new, -1); +#if 0 gtk_tool_item_set_tooltip_text (ui->new, _("Clear the rack")); +#else + gtk_tool_item_set_tooltip (ui->new, toolbar_tips, + _("Clear the rack"), NULL); +#endif g_signal_connect (G_OBJECT (ui->new), "clicked", G_CALLBACK (new_cb), ui); #ifdef HAVE_XML tool_item = gtk_tool_button_new_from_stock (GTK_STOCK_OPEN); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), tool_item, -1); +#if 0 gtk_tool_item_set_tooltip_text (tool_item, _("Load a previously-saved rack configuration")); +#else + gtk_tool_item_set_tooltip (tool_item, toolbar_tips, + _("Load a previously-saved rack configuration"), + NULL); +#endif g_signal_connect (G_OBJECT (tool_item), "clicked", G_CALLBACK (open_cb), ui); tool_item = gtk_tool_button_new_from_stock (GTK_STOCK_SAVE); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), tool_item, -1); +#if 0 gtk_tool_item_set_tooltip_text (tool_item, _("Save the rack configuration to the current file")); +#else + gtk_tool_item_set_tooltip (tool_item, toolbar_tips, + _("Save the rack configuration to the current file"), + NULL); +#endif g_signal_connect (G_OBJECT (tool_item), "clicked", G_CALLBACK (save_cb), ui); tool_item = gtk_tool_button_new_from_stock (GTK_STOCK_SAVE_AS); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), tool_item, -1); +#if 0 gtk_tool_item_set_tooltip_text (tool_item, _("Save the rack configuration to a new file")); +#else + gtk_tool_item_set_tooltip (tool_item, toolbar_tips, + _("Save the rack configuration to a new file"), + NULL); +#endif g_signal_connect (G_OBJECT (tool_item), "clicked", G_CALLBACK (save_as_cb), ui); #endif /* HAVE_XML */ @@ -292,7 +328,12 @@ ui_init_gui (ui_t * ui, unsigned long ch ui->lash_save = gtk_tool_button_new_from_stock (GTK_STOCK_SAVE); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), ui->lash_save, -1); +#if 0 gtk_tool_item_set_tooltip_text (ui->lash_save, _("Save the current LASH project")); +#else + gtk_tool_item_set_tooltip (ui->lash_save, toolbar_tips, + _("Save the current LASH project"), NULL); +#endif g_signal_connect (G_OBJECT (ui->lash_save), "clicked", G_CALLBACK (lash_save_cb), ui); } @@ -302,7 +343,12 @@ ui_init_gui (ui_t * ui, unsigned long ch tool_item = gtk_tool_button_new_from_stock (GTK_STOCK_QUIT); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), tool_item, -1); +#if 0 gtk_tool_item_set_tooltip_text (tool_item, _("Quit JACK Rack")); +#else + gtk_tool_item_set_tooltip (tool_item, toolbar_tips, + _("Quit JACK Rack"), NULL); +#endif g_signal_connect (G_OBJECT (tool_item), "clicked", G_CALLBACK (quit_cb), ui); gtk_widget_show_all (toolbar);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor