summaryrefslogtreecommitdiff
path: root/capplets/time-admin/src/time-share.c
diff options
context:
space:
mode:
authormouse <[email protected]>2019-06-24 10:03:57 +0800
committerGitHub <[email protected]>2019-06-24 10:03:57 +0800
commit39028e317750bcc4c81d762c25f2c88f5c8f3f56 (patch)
tree372cc9f259ae6d30530104358ab152d6e613da03 /capplets/time-admin/src/time-share.c
parentc436dbdbd09ce0db5dd3c86f015621ebf56626f0 (diff)
parent2e903d139874a5516c70698c3b688c71d0a805e1 (diff)
downloadmate-control-center-39028e317750bcc4c81d762c25f2c88f5c8f3f56.tar.bz2
mate-control-center-39028e317750bcc4c81d762c25f2c88f5c8f3f56.tar.xz
Merge pull request #468 from mate-desktop/dialog-buttons
time-admin: shortcuts, images & shared code for buttons
Diffstat (limited to 'capplets/time-admin/src/time-share.c')
-rw-r--r--capplets/time-admin/src/time-share.c17
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)