[Xfce4-commits] [apps/xfce4-taskmanager] 06/21: Add more information to the identify button
noreply at xfce.org
noreply at xfce.org
Thu Jan 26 22:59:10 CET 2017
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository apps/xfce4-taskmanager.
commit 698ab26a45349bfa6184e9ba18a204cbf562a449
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Tue Jan 24 01:00:14 2017 +0100
Add more information to the identify button
---
src/process-window.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/process-window.c b/src/process-window.c
index 9dc7fa1..cf82448 100644
--- a/src/process-window.c
+++ b/src/process-window.c
@@ -214,6 +214,7 @@ static void
xtm_process_window_init (XtmProcessWindow *window)
{
GtkWidget *button;
+ GtkWidget *icon;
GtkToolItem *xwininfo;
gint width, height;
gchar *markup;
@@ -241,11 +242,13 @@ xtm_process_window_init (XtmProcessWindow *window)
window->settings_button = xtm_settings_tool_button_new ();
gtk_toolbar_insert (GTK_TOOLBAR (window->toolbar), GTK_TOOL_ITEM (window->settings_button), 1);
- xwininfo = gtk_tool_button_new (NULL, _("Identify"));
- gtk_toolbar_insert(GTK_TOOLBAR (window->toolbar), GTK_TOOL_ITEM(xwininfo), 2);
+ icon = gtk_image_new_from_icon_name ("edit-find", GTK_ICON_SIZE_SMALL_TOOLBAR);
+ xwininfo = gtk_tool_button_new (icon, _("Identify"));
+ gtk_widget_set_tooltip_text (GTK_WIDGET (log_refresh_button), _("Identify an open window"));
+ gtk_toolbar_insert (GTK_TOOLBAR (window->toolbar), GTK_TOOL_ITEM (xwininfo), 2);
g_signal_connect (G_OBJECT (xwininfo), "clicked",
G_CALLBACK (xwininfo_clicked_cb), window);
- gtk_widget_show (GTK_WIDGET (xwininfo));
+ gtk_widget_show_all (GTK_WIDGET (xwininfo));
button = GTK_WIDGET (gtk_builder_get_object (window->builder, "toolbutton-about"));
g_signal_connect_swapped (button, "clicked", G_CALLBACK (show_about_dialog), window);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list