diff --git a/Makefile.am b/Makefile.am index e9290de..0877768 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} SUBDIRS = \ + data \ po \ src @@ -17,7 +18,7 @@ EXTRA_DIST = \ intltool-merge.in \ intltool-update.in \ $(desktop_in_files) - + DISTCLEANFILES = \ intltool-extract \ intltool-merge \ diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..5621c06 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,2 @@ +SUBDIRS = icons + diff --git a/data/icons/16x16/Makefile.am b/data/icons/16x16/Makefile.am new file mode 100644 index 0000000..0b1cf90 --- /dev/null +++ b/data/icons/16x16/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(datadir)/icons/hicolor/16x16/apps +icons_DATA = xc_crosshair.png +EXTRA_DIST = $(icons_DATA) diff --git a/data/icons/16x16/xc_crosshair.png b/data/icons/16x16/xc_crosshair.png new file mode 100644 index 0000000..55cadfa Binary files /dev/null and b/data/icons/16x16/xc_crosshair.png differ diff --git a/data/icons/16x16/xc_crosshair.svg b/data/icons/16x16/xc_crosshair.svg new file mode 100644 index 0000000..3d3267d --- /dev/null +++ b/data/icons/16x16/xc_crosshair.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/data/icons/24x24/Makefile.am b/data/icons/24x24/Makefile.am new file mode 100644 index 0000000..eedc319 --- /dev/null +++ b/data/icons/24x24/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(datadir)/icons/hicolor/24x24/actions +icons_DATA = xc_crosshair.png +EXTRA_DIST = $(icons_DATA) diff --git a/data/icons/24x24/xc_crosshair.png b/data/icons/24x24/xc_crosshair.png new file mode 100644 index 0000000..69770d7 Binary files /dev/null and b/data/icons/24x24/xc_crosshair.png differ diff --git a/data/icons/24x24/xc_crosshair.svg b/data/icons/24x24/xc_crosshair.svg new file mode 100644 index 0000000..a91908c --- /dev/null +++ b/data/icons/24x24/xc_crosshair.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am new file mode 100644 index 0000000..967aebb --- /dev/null +++ b/data/icons/Makefile.am @@ -0,0 +1,17 @@ +SUBDIRS = 16x16 24x24 scalable + +gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor + +install-data-hook: + @-if test -z "$(DESTDIR)"; then \ + echo "Updating Gtk icon cache."; \ + $(gtk_update_icon_cache); \ + else \ + echo "*** Icon cache not updated. Remember to run:"; \ + echo "***"; \ + echo "*** $(gtk_update_icon_cache)"; \ + echo "***"; \ + fi + +uninstall-local: + -rm $(datadir)/icons/hicolor/icon-theme.cache diff --git a/data/icons/scalable/Makefile.am b/data/icons/scalable/Makefile.am new file mode 100644 index 0000000..1985234 --- /dev/null +++ b/data/icons/scalable/Makefile.am @@ -0,0 +1,3 @@ +iconsdir = $(datadir)/icons/hicolor/scalable/actions +icons_DATA = xc_crosshair.svg +EXTRA_DIST = $(icons_DATA) diff --git a/data/icons/scalable/xc_crosshair.svg b/data/icons/scalable/xc_crosshair.svg new file mode 100644 index 0000000..a91908c --- /dev/null +++ b/data/icons/scalable/xc_crosshair.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/process-window.c b/src/process-window.c index a6b08d9..b7d925e 100644 --- a/src/process-window.c +++ b/src/process-window.c @@ -247,9 +247,9 @@ 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); - 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 (xwininfo), _("Identify an open window")); + icon = gtk_image_new_from_icon_name ("xc_crosshair", GTK_ICON_SIZE_SMALL_TOOLBAR); + xwininfo = gtk_tool_button_new (icon, _("Identify Window")); + gtk_widget_set_tooltip_text (GTK_WIDGET (xwininfo), _("Identify an open window by clicking on it.")); 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);