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)
This commit is contained in:
Matthias Clasen 2005-08-29 20:01:28 +00:00 committed by Matthias Clasen
parent 5934fda153
commit 4dfca1aa6b
14 changed files with 49 additions and 3 deletions

View File

@ -1,5 +1,16 @@
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/gtkstatusicon-x11.c: Add docs.

View File

@ -1,5 +1,16 @@
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/gtkstatusicon-x11.c: Add docs.

View File

@ -1,5 +1,10 @@
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-docs.sgml: Add GtkStatusIcon

View File

@ -200,6 +200,7 @@ HTML_IMAGES = \
$(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_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_color_picker_25.png \
$(top_srcdir)/gtk/stock-icons/stock_font_24.png \

View File

@ -5533,6 +5533,7 @@ GTK_STOCK_REMOVE
GTK_STOCK_REVERT_TO_SAVED
GTK_STOCK_SAVE
GTK_STOCK_SAVE_AS
GTK_STOCK_SELECT_ALL
GTK_STOCK_SELECT_COLOR
GTK_STOCK_SELECT_FONT
GTK_STOCK_SORT_ASCENDING

View File

@ -773,6 +773,13 @@ The "Save As" item.
</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 ##### -->
<para>

View File

@ -4557,7 +4557,7 @@ popup_targets_received (GtkClipboard *clipboard,
gtk_widget_show (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_CALLBACK (gtk_entry_select_all), entry);
gtk_widget_show (menuitem);

View File

@ -792,6 +792,10 @@ get_default_icons (GtkIconFactory *factory)
16, stock_zoom_fit_16,
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 */
add_icon (factory, GTK_STOCK_CLEAR, 24, stock_clear_24);

View File

@ -323,7 +323,7 @@ static const GtkStockItem builtin_items [] =
{ GTK_STOCK_CLOSE, N_("_Close"), GDK_CONTROL_MASK, 'w', GETTEXT_PACKAGE },
{ GTK_STOCK_CONNECT, N_("C_onnect"), 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_DELETE, N_("_Delete"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_DISCONNECT, N_("_Disconnect"), 0, 0, GETTEXT_PACKAGE },
@ -401,6 +401,7 @@ static const GtkStockItem builtin_items [] =
{ 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_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_FONT, N_("_Font"), 0, 0, GETTEXT_PACKAGE },
{ GTK_STOCK_SORT_ASCENDING, N_("_Ascending"), 0, 0, GETTEXT_PACKAGE },

View File

@ -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_SAVE "gtk-save"
#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_FONT "gtk-select-font"
#define GTK_STOCK_SORT_ASCENDING "gtk-sort-ascending"

View File

@ -7122,7 +7122,7 @@ popup_targets_received (GtkClipboard *clipboard,
gtk_widget_show (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_CALLBACK (select_all_cb), text_view);
gtk_widget_show (menuitem);

View File

@ -137,6 +137,8 @@ IMAGES = \
stock_search_24.png \
stock_search_replace_16.png \
stock_search_replace_24.png \
stock_select_all_16.png \
stock_select_all_24.png \
stock_sort_ascending_16.png \
stock_sort_ascending_24.png \
stock_sort_descending_16.png \
@ -324,6 +326,8 @@ VARIABLES5 = \
stock_search_24 $(srcdir)/stock_search_24.png \
stock_search_replace_16 $(srcdir)/stock_search_replace_16.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_24 $(srcdir)/stock_sort_ascending_24.png \
stock_sort_descending_16 $(srcdir)/stock_sort_descending_16.png \

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B