Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove one widget box layer.

Start removing the stacked widget structure,
which is a relict of the plugin structure.
This remove the pwid GTKWidget from
application data stucture.
  • Loading branch information...
commit 69fac9f89e177230d3b4650bcd4fff09be1cd744 1 parent 914073c
Daniel Ehlers authored March 26, 2010
2  main.c
@@ -88,7 +88,7 @@ tray_constructor(panel *p)
88 88
     tr->mainw = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
89 89
     tr->box = p->my_box_new(FALSE, 1);
90 90
     gtk_container_add (GTK_CONTAINER (tr->mainw), tr->box);
91  
-    gtk_container_add(GTK_CONTAINER(p->pwid), tr->mainw);
  91
+    gtk_container_add(GTK_CONTAINER(p->box), tr->mainw);
92 92
     
93 93
     screen = gtk_widget_get_screen (GTK_WIDGET (p->topgwin));
94 94
     
8  panel.c
@@ -502,16 +502,10 @@ panel_parse_global(panel *p)
502 502
  */
503 503
 static int panel_systray(panel *panel){
504 504
     ENTER;
505  
-
506  
-    panel->pwid = gtk_event_box_new();
507  
-    gtk_box_pack_start(GTK_BOX(panel->box), panel->pwid, panel->expand, TRUE,
508  
-          panel->padding);
509  
-    
  505
+	
510 506
     if (!tray_constructor(panel)) {
511  
-        gtk_widget_destroy(panel->pwid);
512 507
         RET(0);
513 508
     }
514  
-    gtk_widget_show(panel->pwid);
515 509
 
516 510
     RET(1);
517 511
 }
1  panel.h
@@ -55,7 +55,6 @@ typedef struct {
55 55
     int plug_num;
56 56
 
57 57
     // Import from plugin structure
58  
-    GtkWidget    *pwid;
59 58
     gpointer     priv; 
60 59
     int expand;
61 60
     int padding;

0 notes on commit 69fac9f

Please sign in to comment.
Something went wrong with that request. Please try again.