You are not logged in.

#1 2009-09-04 21:22:56

lynix
Member
From: Karlsruhe, Germany
Registered: 2008-04-23
Posts: 230

xfce(4)-notifyd: bold summary

Hi!

Does anybody know how to make the bubble-headings (aka summary) bold?
I know of the theming stuff but I don't know what to set in the gtkrc to make the label bold...

I just switched over from the gnome notification daemon and this is the only thing that I miss smile


Thanks,

lynix

Offline

#2 2009-09-06 09:22:26

lynix
Member
From: Karlsruhe, Germany
Registered: 2008-04-23
Posts: 230

Re: xfce(4)-notifyd: bold summary

Well I "solved" my problem through a dirty hack on the sources, I found no solution that works via gtkrc.

*** xfce-notify-window.c    2008-08-07 08:11:40.000000000 +0200
--- xfce-notify-window.c.new    2009-09-06 11:18:47.924295894 +0200
***************
*** 979,987 ****
--- 979,993 ----
  xfce_notify_window_set_summary(XfceNotifyWindow *window,
                                 const gchar *summary)
  {
+     PangoFontDescription *bold;
+     bold = pango_font_description_new();
+     pango_font_description_set_weight(bold, PANGO_WEIGHT_BOLD);
+         
      g_return_if_fail(XFCE_IS_NOTIFY_WINDOW(window));
      
      gtk_label_set_text(GTK_LABEL(window->summary), summary);
+     gtk_widget_modify_font(window->summary, bold);
+     
      if(summary && *summary)
          gtk_widget_show(window->summary);
      else

Last edited by lynix (2009-09-06 09:22:56)

Offline

Board footer

Powered by FluxBB