[Xfce4-commits] [panel-plugins/xfce4-timer-plugin] 07/22: Code fix

noreply at xfce.org noreply at xfce.org
Sat Dec 30 06:16:28 CET 2017


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

a   n   d   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-timer-plugin.

commit 5af1aa585671fcc659c5d77db2069154722b57f6
Author: Daniel Muñiz Fontoira <dani at damufo.com>
Date:   Thu Aug 3 11:57:31 2017 +0200

    Code fix
    
    -Configure fix comment nl for dnl
    -xfcetimer.c deleted commented include
---
 configure.ac.in          |  2 +-
 panel-plugin/xfcetimer.c | 32 ++++++++++++++++----------------
 2 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index f5a9e3a..ce92146 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -34,7 +34,7 @@ AC_CONFIG_HEADER([config.h])
 AM_MAINTAINER_MODE()
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
-nl **************************
+dnl **************************
 dnl *** Initialize libtool ***
 dnl **************************
 LT_PREREQ([2.2.6])
diff --git a/panel-plugin/xfcetimer.c b/panel-plugin/xfcetimer.c
index 3bf91c6..2f3968a 100644
--- a/panel-plugin/xfcetimer.c
+++ b/panel-plugin/xfcetimer.c
@@ -38,7 +38,6 @@
 #include <glib/gprintf.h>  // for gcc's warning: implicit declaration of function 'g_sprintf'
 #include <libxfce4util/libxfce4util.h>
 #include <libxfce4ui/libxfce4ui.h>
-/*#include <libxfce4panel/xfce-panel-plugin.h>*/
 #include <libxfce4panel/libxfce4panel.h>
 
 #include "xfcetimer.h"
@@ -1081,37 +1080,38 @@ static void add_pbar(XfcePanelPlugin *plugin, plugin_data *pd){
   /* vertical bar */
   if(xfce_panel_plugin_get_orientation(plugin)==GTK_ORIENTATION_HORIZONTAL){
     pd->box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER(pd->box), BORDER/2);
+    //gtk_container_set_border_width (GTK_CONTAINER(pd->box), BORDER/2);
+    gtk_container_set_border_width (GTK_CONTAINER(pd->box), 0);
 
     gtk_container_add(GTK_CONTAINER(plugin),pd->box);
     gtk_orientable_set_orientation(GTK_ORIENTABLE(pd->pbar),
     							   GTK_ORIENTATION_VERTICAL);
     gtk_widget_set_size_request(GTK_WIDGET(pd->pbar),PBAR_THICKNESS,0);
-    gtk_box_pack_start(GTK_BOX(pd->box),
-    				   gtk_separator_new(GTK_ORIENTATION_VERTICAL),
-					   FALSE, FALSE, 0);
+    //gtk_box_pack_start(GTK_BOX(pd->box),
+    //				   gtk_separator_new(GTK_ORIENTATION_VERTICAL),
+	//				   FALSE, FALSE, 0);
     gtk_box_pack_start(GTK_BOX(pd->box),pd->pbar,FALSE,FALSE,0);
-    gtk_box_pack_start(GTK_BOX(pd->box),
-			           gtk_separator_new(GTK_ORIENTATION_VERTICAL),
-			           FALSE, FALSE, 0);
+    //gtk_box_pack_start(GTK_BOX(pd->box),
+	//		           gtk_separator_new(GTK_ORIENTATION_VERTICAL),
+	//		           FALSE, FALSE, 0);
 
   }
   else{ /* horizontal bar */
 	pd->box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-    gtk_container_set_border_width (GTK_CONTAINER(pd->box), BORDER/2);
-
+    //gtk_container_set_border_width (GTK_CONTAINER(pd->box), BORDER/2);
+	gtk_container_set_border_width (GTK_CONTAINER(pd->box), BORDER/2);
     gtk_container_add(GTK_CONTAINER(plugin),pd->box);
 
     gtk_orientable_set_orientation(GTK_ORIENTABLE(pd->pbar),
     				GTK_ORIENTATION_HORIZONTAL);
     gtk_widget_set_size_request(GTK_WIDGET(pd->pbar),0,PBAR_THICKNESS);
-    gtk_box_pack_start(GTK_BOX(pd->box),
-    		           gtk_separator_new(GTK_ORIENTATION_HORIZONTAL),
-					   FALSE, FALSE, 0);
+    //gtk_box_pack_start(GTK_BOX(pd->box),
+    //		           gtk_separator_new(GTK_ORIENTATION_HORIZONTAL),
+	//				   FALSE, FALSE, 0);
     gtk_box_pack_start(GTK_BOX(pd->box),pd->pbar,FALSE,FALSE,0);
-    gtk_box_pack_start(GTK_BOX(pd->box),
-    				   gtk_separator_new(GTK_ORIENTATION_HORIZONTAL),
-					   FALSE, FALSE, 0);
+    //gtk_box_pack_start(GTK_BOX(pd->box),
+    //				   gtk_separator_new(GTK_ORIENTATION_HORIZONTAL),
+	//				   FALSE, FALSE, 0);
 
   }
 

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


More information about the Xfce4-commits mailing list