]> git.pld-linux.org Git - packages/fbpanel.git/blob - fbpanel-post_3.9_fixes.patch
- sooooo sexy 3.9 and small post fixes (including patch)
[packages/fbpanel.git] / fbpanel-post_3.9_fixes.patch
1 diff -aurN fbpanel.orig/dclock.c fbpanel.cvs/dclock.c
2 --- fbpanel.orig/dclock.c       2004-05-23 21:48:58.000000000 +0200
3 +++ fbpanel.cvs/dclock.c        2004-10-08 21:27:35.000000000 +0200
4 @@ -47,11 +47,12 @@
5  static gint
6  clock_update(gpointer data )
7  {
8 -    char output [40] ;
9 +    char output [64] ;
10      time_t now ;
11      struct tm * detail ;
12      dclock *dc;
13 -
14 +    gchar *utf8;
15 +    
16      ENTER;
17      g_assert(data != NULL);
18      dc = (dclock *)data;
19 @@ -65,7 +66,10 @@
20         dc->lastDay = detail->tm_mday ;
21  
22         strftime (output, sizeof(output), dc->tfmt, detail) ;
23 -       gtk_tooltips_set_tip(dc->tip, dc->main, output, NULL) ;
24 +        if ((utf8 = g_locale_to_utf8(output, -1, NULL, NULL, NULL))) {
25 +            gtk_tooltips_set_tip(dc->tip, dc->main, utf8, NULL) ;
26 +            g_free(utf8);
27 +        }
28      }
29      RET(TRUE);
30  }
31 diff -aurN fbpanel.orig/pager.c fbpanel.cvs/pager.c
32 --- fbpanel.orig/pager.c        2004-06-15 03:59:26.000000000 +0200
33 +++ fbpanel.cvs/pager.c 2004-10-08 22:07:16.000000000 +0200
34 @@ -115,7 +115,7 @@
35            0, 0,
36            widget->allocation.width,
37            widget->allocation.height);
38 -
39 +    
40      RET();
41  }
42  
43 @@ -275,6 +275,7 @@
44          desk_set_dirty(p, t);
45          if (p->focusedtask == t)
46              p->focusedtask = NULL;
47 +        DBG("del %x\n", t->win);
48          g_free(t);
49          return TRUE;
50      }
51 @@ -385,6 +386,7 @@
52              get_sizepos(t);
53              XSelectInput (GDK_DISPLAY(), t->win, PropertyChangeMask | StructureNotifyMask);
54              g_hash_table_insert(p->htable, &t->win, t);
55 +            DBG("add %x\n", t->win);
56              desk_set_dirty(p, t);
57          }
58      }
59 @@ -420,9 +422,10 @@
60      task *t;
61  
62      ENTER;
63 -    DBG("win=0x%x\n", win);
64
65      if (!(t = g_hash_table_lookup(p->htable, &win))) 
66          RET();
67 +    DBG("win=0x%x\n", win);
68      get_sizepos(t);
69      desk_set_dirty(p, t);
70      pager_redraw_if_dirty(p);
71 @@ -642,7 +645,7 @@
72  
73      //pg->htable = g_hash_table_new (g_int_hash, g_int_equal);
74      pager_rebuild_all(pg);
75 -    //do_net_client_list_stacking(pg);
76 +    do_net_client_list_stacking(pg);
77      pager_redraw_if_dirty(pg);
78      XSelectInput (GDK_DISPLAY(), GDK_ROOT_WINDOW(), PropertyChangeMask);
79      //XSelectInput(GDK_DISPLAY(), topxwin, PropertyChangeMask|FocusChangeMask|StructureNotifyMask);
This page took 0.054588 seconds and 3 git commands to generate.