diff options
author | rbuj <[email protected]> | 2019-06-19 00:28:40 +0200 |
---|---|---|
committer | rbuj <[email protected]> | 2019-06-19 08:43:51 +0200 |
commit | 2e903d139874a5516c70698c3b688c71d0a805e1 (patch) | |
tree | ea032a969c31b41cc03b14cadef073afb18fb12a /capplets/time-admin/src/time-share.c | |
parent | 51e386fd4f5c60750c57a815203981754580e01d (diff) | |
download | mate-control-center-2e903d139874a5516c70698c3b688c71d0a805e1.tar.bz2 mate-control-center-2e903d139874a5516c70698c3b688c71d0a805e1.tar.xz |
time-admin: shortcuts, images & shared code for buttons
- Add & enable mnemonic accelerator keys
- Show Save/Close button icons in Time/Date manager window
- Remove DialogAddButtonWithIconName from shares
Diffstat (limited to 'capplets/time-admin/src/time-share.c')
-rw-r--r-- | capplets/time-admin/src/time-share.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/capplets/time-admin/src/time-share.c b/capplets/time-admin/src/time-share.c index 6cc874ff..1bbea7d1 100644 --- a/capplets/time-admin/src/time-share.c +++ b/capplets/time-admin/src/time-share.c @@ -123,24 +123,7 @@ void QuitApp(TimeAdmin *ta) gtk_main_quit(); } -GtkWidget* DialogAddButtonWithIconName (GtkDialog *dialog, - const gchar *button_text, - const gchar *icon_name, - gint response_id) -{ - GtkWidget *button; - - button = gtk_button_new_with_mnemonic (button_text); - gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON)); - gtk_button_set_use_underline (GTK_BUTTON (button), TRUE); - gtk_style_context_add_class (gtk_widget_get_style_context (button), "text-button"); - gtk_widget_set_can_default (button, TRUE); -// gtk_widget_show (button); - gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, response_id); - - return button; -} void SetTooltip(GtkWidget*box,gboolean mode) { if(!mode) |