mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
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:
parent
5934fda153
commit
4dfca1aa6b
11
ChangeLog
11
ChangeLog
@ -1,5 +1,16 @@
|
|||||||
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.
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
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.
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
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 = \
|
|||||||
$(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
|
|||||||
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.
|
|||||||
</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,
|
|||||||
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)
|
|||||||
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);
|
||||||
|
@ -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,
|
|||||||
#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,
|
|||||||
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 = \
|
|||||||
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 = \
|
|||||||
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 \
|
||||||
|
BIN
gtk/stock-icons/stock_select_all_16.png
Normal file
BIN
gtk/stock-icons/stock_select_all_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 342 B |
BIN
gtk/stock-icons/stock_select_all_24.png
Normal file
BIN
gtk/stock-icons/stock_select_all_24.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 681 B |
Loading…
Reference in New Issue
Block a user