diff options
author | monsta <[email protected]> | 2015-12-17 16:30:21 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-12-17 16:30:21 +0300 |
commit | 6a153879f323a90f16f4b6525ef7e73e998aca04 (patch) | |
tree | a4d6c0ba321d1086adeaf333d1616934122d5cbd /timerapplet | |
parent | 122bd6c6b709de535f9dd55c5c73c0943ded164c (diff) | |
download | mate-applets-6a153879f323a90f16f4b6525ef7e73e998aca04.tar.bz2 mate-applets-6a153879f323a90f16f4b6525ef7e73e998aca04.tar.xz |
timer: simplify some code
Diffstat (limited to 'timerapplet')
-rw-r--r-- | timerapplet/timerapplet.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/timerapplet/timerapplet.c b/timerapplet/timerapplet.c index ac12a77a..6aeb72b8 100644 --- a/timerapplet/timerapplet.c +++ b/timerapplet/timerapplet.c @@ -59,7 +59,7 @@ typedef struct GtkLabel *label; GtkImage *image; GtkImage *pause_image; - GtkHBox *hbox; + GtkBox *box; GtkSpinButton *hours; GtkSpinButton *minutes; @@ -402,24 +402,24 @@ timer_applet_fill (MatePanelApplet* applet_widget) applet->active = FALSE; applet->pause = FALSE; - applet->hbox = GTK_HBOX (gtk_hbox_new (FALSE, 0)); + applet->box = GTK_BOX (gtk_hbox_new (FALSE, 0)); applet->image = GTK_IMAGE (gtk_image_new_from_icon_name (APPLET_ICON, GTK_ICON_SIZE_BUTTON)); applet->pause_image = GTK_IMAGE (gtk_image_new_from_icon_name (GTK_STOCK_MEDIA_PAUSE, GTK_ICON_SIZE_BUTTON)); applet->label = GTK_LABEL (gtk_label_new ("")); /* we add the Gtk label into the applet */ - gtk_box_pack_start (GTK_BOX (applet->hbox), + gtk_box_pack_start (applet->box, GTK_WIDGET (applet->image), TRUE, TRUE, 0); - gtk_box_pack_start (GTK_BOX (applet->hbox), + gtk_box_pack_start (applet->box, GTK_WIDGET (applet->pause_image), TRUE, TRUE, 0); - gtk_box_pack_start (GTK_BOX (applet->hbox), + gtk_box_pack_start (applet->box, GTK_WIDGET (applet->label), TRUE, TRUE, 3); gtk_container_add (GTK_CONTAINER (applet_widget), - GTK_WIDGET (applet->hbox)); + GTK_WIDGET (applet->box)); gtk_widget_show_all (GTK_WIDGET (applet->applet)); gtk_widget_hide (GTK_WIDGET (applet->pause_image)); |