Commit 4dfca1aa authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Construct the "Select All" menuitem from stock.

2005-08-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (popup_targets_received):
	* gtk/gtkentry.c (popup_targets_received): Construct
	the "Select All" menuitem from stock.

	* gtk/stock-icons/stock_select_all_{16,24}.png:
	* gtk/stock-icons/Makefile.am:
	* gtk/gtkiconfactory.c:
	* gtk/gtkstock.h:
	* gtk/gtkstock.c: Add a "Select All" stock item.  (#78545,
	Calum Benson)
parent 5934fda1
2005-08-29 Matthias Clasen <mclasen@redhat.com> 2005-08-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (popup_targets_received):
* gtk/gtkentry.c (popup_targets_received): Construct
the "Select All" menuitem from stock.
* gtk/stock-icons/stock_select_all_{16,24}.png:
* gtk/stock-icons/Makefile.am:
* gtk/gtkiconfactory.c:
* gtk/gtkstock.h:
* gtk/gtkstock.c: Add a "Select All" stock item. (#78545,
Calum Benson)
* gtk/gtktrayicon.c: Add a pointer to the spec. * gtk/gtktrayicon.c: Add a pointer to the spec.
* gtk/gtkstatusicon-x11.c: Add docs. * gtk/gtkstatusicon-x11.c: Add docs.
......
2005-08-29 Matthias Clasen <mclasen@redhat.com> 2005-08-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (popup_targets_received):
* gtk/gtkentry.c (popup_targets_received): Construct
the "Select All" menuitem from stock.
* gtk/stock-icons/stock_select_all_{16,24}.png:
* gtk/stock-icons/Makefile.am:
* gtk/gtkiconfactory.c:
* gtk/gtkstock.h:
* gtk/gtkstock.c: Add a "Select All" stock item. (#78545,
Calum Benson)
* gtk/gtktrayicon.c: Add a pointer to the spec. * gtk/gtktrayicon.c: Add a pointer to the spec.
* gtk/gtkstatusicon-x11.c: Add docs. * gtk/gtkstatusicon-x11.c: Add docs.
......
2005-08-29 Matthias Clasen <mclasen@redhat.com> 2005-08-29 Matthias Clasen <mclasen@redhat.com>
* gtk/Makefile.am (HTML_IMAGES): Add stock_select_all_24.png
* gtk/gtk-sections.txt:
* gtk/tmpl/gtkstock.sgml: Add GTK_STOCK_SELECT_ALL.
* gtk/gtk.types: Add gtk_status_icon_get_type * gtk/gtk.types: Add gtk_status_icon_get_type
* gtk/gtk-docs.sgml: Add GtkStatusIcon * gtk/gtk-docs.sgml: Add GtkStatusIcon
......
...@@ -200,6 +200,7 @@ HTML_IMAGES = \ ...@@ -200,6 +200,7 @@ HTML_IMAGES = \
$(top_srcdir)/gtk/stock-icons/stock_revert_rtl_24.png \ $(top_srcdir)/gtk/stock-icons/stock_revert_rtl_24.png \
$(top_srcdir)/gtk/stock-icons/stock_save_24.png \ $(top_srcdir)/gtk/stock-icons/stock_save_24.png \
$(top_srcdir)/gtk/stock-icons/stock_save_as_24.png \ $(top_srcdir)/gtk/stock-icons/stock_save_as_24.png \
$(top_srcdir)/gtk/stock-icons/stock_select_all_24.png \
$(top_srcdir)/gtk/stock-icons/stock_colorselector_24.png \ $(top_srcdir)/gtk/stock-icons/stock_colorselector_24.png \
$(top_srcdir)/gtk/stock-icons/stock_color_picker_25.png \ $(top_srcdir)/gtk/stock-icons/stock_color_picker_25.png \
$(top_srcdir)/gtk/stock-icons/stock_font_24.png \ $(top_srcdir)/gtk/stock-icons/stock_font_24.png \
......
...@@ -5533,6 +5533,7 @@ GTK_STOCK_REMOVE ...@@ -5533,6 +5533,7 @@ GTK_STOCK_REMOVE
GTK_STOCK_REVERT_TO_SAVED GTK_STOCK_REVERT_TO_SAVED
GTK_STOCK_SAVE GTK_STOCK_SAVE
GTK_STOCK_SAVE_AS GTK_STOCK_SAVE_AS
GTK_STOCK_SELECT_ALL
GTK_STOCK_SELECT_COLOR GTK_STOCK_SELECT_COLOR
GTK_STOCK_SELECT_FONT GTK_STOCK_SELECT_FONT
GTK_STOCK_SORT_ASCENDING GTK_STOCK_SORT_ASCENDING
......
...@@ -773,6 +773,13 @@ The "Save As" item. ...@@ -773,6 +773,13 @@ The "Save As" item.
</para> </para>
<!-- ##### MACRO GTK_STOCK_SELECT_ALL ##### -->
<para>
The "Select All" item.
<inlinegraphic fileref="stock_select_all_24.png" format="PNG"></inlinegraphic>
</para>
@Since: 2.10
<!-- ##### MACRO GTK_STOCK_SELECT_COLOR ##### --> <!-- ##### MACRO GTK_STOCK_SELECT_COLOR ##### -->
<para> <para>
......
...@@ -4557,7 +4557,7 @@ popup_targets_received (GtkClipboard *clipboard, ...@@ -4557,7 +4557,7 @@ popup_targets_received (GtkClipboard *clipboard,
gtk_widget_show (menuitem); gtk_widget_show (menuitem);
gtk_menu_shell_append (GTK_MENU_SHELL (entry->popup_menu), menuitem); gtk_menu_shell_append (GTK_MENU_SHELL (entry->popup_menu), menuitem);
menuitem = gtk_menu_item_new_with_mnemonic (_("Select _All")); menuitem = gtk_menu_item_new_from_stock (GTK_STOCK_SELECT_ALL, NULL);
g_signal_connect_swapped (menuitem, "activate", g_signal_connect_swapped (menuitem, "activate",
G_CALLBACK (gtk_entry_select_all), entry); G_CALLBACK (gtk_entry_select_all), entry);
gtk_widget_show (menuitem); gtk_widget_show (menuitem);
......
...@@ -792,6 +792,10 @@ get_default_icons (GtkIconFactory *factory) ...@@ -792,6 +792,10 @@ get_default_icons (GtkIconFactory *factory)
16, stock_zoom_fit_16, 16, stock_zoom_fit_16,
24, stock_zoom_fit_24); 24, stock_zoom_fit_24);
add_icon2 (factory, GTK_STOCK_SELECT_ALL,
16, stock_select_all_16,
24, stock_select_all_24);
/* Generic size only */ /* Generic size only */
add_icon (factory, GTK_STOCK_CLEAR, 24, stock_clear_24); add_icon (factory, GTK_STOCK_CLEAR, 24, stock_clear_24);
......
...@@ -323,7 +323,7 @@ static const GtkStockItem builtin_items [] = ...@@ -323,7 +323,7 @@ static const GtkStockItem builtin_items [] =
{ GTK_STOCK_CLOSE, N_("_Close"), GDK_CONTROL_MASK, 'w', GETTEXT_PACKAGE }, { GTK_STOCK_CLOSE, N_("_Close"), GDK_CONTROL_MASK, 'w', GETTEXT_PACKAGE },
{ GTK_STOCK_CONNECT, N_("C_onnect"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_CONNECT, N_("C_onnect"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_CONVERT, N_("_Convert"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_CONVERT, N_("_Convert"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_COPY, N_("_Copy"), GDK_CONTROL_MASK, 'c', GETTEXT_PACKAGE }, { GTK_STOCK_COPY, N_("_Copy"), GDK_CONTROL_MASK, 'c', GETTEXT_PACKAGE },
{ GTK_STOCK_CUT, N_("Cu_t"), GDK_CONTROL_MASK, 'x', GETTEXT_PACKAGE }, { GTK_STOCK_CUT, N_("Cu_t"), GDK_CONTROL_MASK, 'x', GETTEXT_PACKAGE },
{ GTK_STOCK_DELETE, N_("_Delete"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_DELETE, N_("_Delete"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_DISCONNECT, N_("_Disconnect"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_DISCONNECT, N_("_Disconnect"), 0, 0, GETTEXT_PACKAGE },
...@@ -401,6 +401,7 @@ static const GtkStockItem builtin_items [] = ...@@ -401,6 +401,7 @@ static const GtkStockItem builtin_items [] =
{ GTK_STOCK_REVERT_TO_SAVED, N_("_Revert"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_REVERT_TO_SAVED, N_("_Revert"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_SAVE, N_("_Save"), GDK_CONTROL_MASK, 's', GETTEXT_PACKAGE }, { GTK_STOCK_SAVE, N_("_Save"), GDK_CONTROL_MASK, 's', GETTEXT_PACKAGE },
{ GTK_STOCK_SAVE_AS, N_("Save _As"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_SAVE_AS, N_("Save _As"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_SELECT_ALL, N_("Select _All"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_SELECT_COLOR, N_("_Color"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_SELECT_COLOR, N_("_Color"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_SELECT_FONT, N_("_Font"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_SELECT_FONT, N_("_Font"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_SORT_ASCENDING, N_("_Ascending"), 0, 0, GETTEXT_PACKAGE }, { GTK_STOCK_SORT_ASCENDING, N_("_Ascending"), 0, 0, GETTEXT_PACKAGE },
......
...@@ -146,6 +146,7 @@ void gtk_stock_set_translate_func (const gchar *domain, ...@@ -146,6 +146,7 @@ void gtk_stock_set_translate_func (const gchar *domain,
#define GTK_STOCK_REVERT_TO_SAVED "gtk-revert-to-saved" #define GTK_STOCK_REVERT_TO_SAVED "gtk-revert-to-saved"
#define GTK_STOCK_SAVE "gtk-save" #define GTK_STOCK_SAVE "gtk-save"
#define GTK_STOCK_SAVE_AS "gtk-save-as" #define GTK_STOCK_SAVE_AS "gtk-save-as"
#define GTK_STOCK_SELECT_ALL "gtk-select-all"
#define GTK_STOCK_SELECT_COLOR "gtk-select-color" #define GTK_STOCK_SELECT_COLOR "gtk-select-color"
#define GTK_STOCK_SELECT_FONT "gtk-select-font" #define GTK_STOCK_SELECT_FONT "gtk-select-font"
#define GTK_STOCK_SORT_ASCENDING "gtk-sort-ascending" #define GTK_STOCK_SORT_ASCENDING "gtk-sort-ascending"
......
...@@ -7122,7 +7122,7 @@ popup_targets_received (GtkClipboard *clipboard, ...@@ -7122,7 +7122,7 @@ popup_targets_received (GtkClipboard *clipboard,
gtk_widget_show (menuitem); gtk_widget_show (menuitem);
gtk_menu_shell_append (GTK_MENU_SHELL (text_view->popup_menu), menuitem); gtk_menu_shell_append (GTK_MENU_SHELL (text_view->popup_menu), menuitem);
menuitem = gtk_menu_item_new_with_mnemonic (_("Select _All")); menuitem = gtk_menu_item_new_from_stock (GTK_STOCK_SELECT_ALL, NULL);
g_signal_connect (menuitem, "activate", g_signal_connect (menuitem, "activate",
G_CALLBACK (select_all_cb), text_view); G_CALLBACK (select_all_cb), text_view);
gtk_widget_show (menuitem); gtk_widget_show (menuitem);
......
...@@ -137,6 +137,8 @@ IMAGES = \ ...@@ -137,6 +137,8 @@ IMAGES = \
stock_search_24.png \ stock_search_24.png \
stock_search_replace_16.png \ stock_search_replace_16.png \
stock_search_replace_24.png \ stock_search_replace_24.png \
stock_select_all_16.png \
stock_select_all_24.png \
stock_sort_ascending_16.png \ stock_sort_ascending_16.png \
stock_sort_ascending_24.png \ stock_sort_ascending_24.png \
stock_sort_descending_16.png \ stock_sort_descending_16.png \
...@@ -324,6 +326,8 @@ VARIABLES5 = \ ...@@ -324,6 +326,8 @@ VARIABLES5 = \
stock_search_24 $(srcdir)/stock_search_24.png \ stock_search_24 $(srcdir)/stock_search_24.png \
stock_search_replace_16 $(srcdir)/stock_search_replace_16.png \ stock_search_replace_16 $(srcdir)/stock_search_replace_16.png \
stock_search_replace_24 $(srcdir)/stock_search_replace_24.png \ stock_search_replace_24 $(srcdir)/stock_search_replace_24.png \
stock_select_all_16 $(srcdir)/stock_select_all_16.png \
stock_select_all_24 $(srcdir)/stock_select_all_24.png \
stock_sort_ascending_16 $(srcdir)/stock_sort_ascending_16.png \ stock_sort_ascending_16 $(srcdir)/stock_sort_ascending_16.png \
stock_sort_ascending_24 $(srcdir)/stock_sort_ascending_24.png \ stock_sort_ascending_24 $(srcdir)/stock_sort_ascending_24.png \
stock_sort_descending_16 $(srcdir)/stock_sort_descending_16.png \ stock_sort_descending_16 $(srcdir)/stock_sort_descending_16.png \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment