[Xfce4-commits] [panel-plugins/xfce4-datetime-plugin] 01/01: Remove the unneeded frame around the calendar

noreply at xfce.org noreply at xfce.org
Wed Apr 24 12:19:57 CEST 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-datetime-plugin.

commit c66b3ae4dc582bb06d009b28bcc5ecbb33c54bc0
Author: Lionel Le Folgoc <mrpouit at ubuntu.com>
Date:   Wed Apr 24 06:19:32 2019 -0400

    Remove the unneeded frame around the calendar
    
    Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
 panel-plugin/datetime.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/panel-plugin/datetime.c b/panel-plugin/datetime.c
index eae98fd..f4921b3 100644
--- a/panel-plugin/datetime.c
+++ b/panel-plugin/datetime.c
@@ -265,7 +265,6 @@ static gboolean close_calendar_window(t_datetime *datetime)
 static GtkWidget * pop_calendar_window(t_datetime *datetime, int orientation)
 {
   GtkWidget  *window;
-  GtkWidget  *frame;
   GtkWidget  *cal;
   GtkWidget  *parent = datetime->button;
   GdkScreen  *screen;
@@ -282,16 +281,12 @@ static GtkWidget * pop_calendar_window(t_datetime *datetime, int orientation)
   screen = gtk_widget_get_screen(parent);
   gtk_window_set_screen(GTK_WINDOW(window), screen);
 
-  frame = gtk_frame_new(NULL);
-  gtk_frame_set_shadow_type (GTK_FRAME(frame), GTK_SHADOW_OUT);
-  gtk_container_add (GTK_CONTAINER(window), frame);
-
   cal = gtk_calendar_new();
   display_options = GTK_CALENDAR_SHOW_HEADING |
     GTK_CALENDAR_SHOW_WEEK_NUMBERS |
     GTK_CALENDAR_SHOW_DAY_NAMES;
   gtk_calendar_set_display_options(GTK_CALENDAR (cal), display_options);
-  gtk_container_add (GTK_CONTAINER(frame), cal);
+  gtk_container_add (GTK_CONTAINER(window), cal);
 
   g_signal_connect_after(G_OBJECT(window), "realize",
       G_CALLBACK(on_calendar_realized),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list