/[xlog]/xlog/src/gui_utils.c
ViewVC logotype

Diff of /xlog/src/gui_utils.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by pa4tu, Tue Oct 26 09:10:48 2004 UTC revision 1.5 by pa4tu, Mon Jan 24 13:54:12 2005 UTC
# Line 24  Line 24 
24  #include <gtk/gtk.h>  #include <gtk/gtk.h>
25  #include "types.h"  #include "types.h"
26  #include "log.h"  #include "log.h"
27    #include "support.h"
28    
29  extern GdkColormap *colormap;  extern GdkColormap *colormap;
30  extern GtkUIManager *ui_manager;  extern GtkUIManager *ui_manager;
# Line 38  setlabelstyle (GtkWidget * label, gchar Line 39  setlabelstyle (GtkWidget * label, gchar
39    
40          gdk_color_parse (color, &themecolor);          gdk_color_parse (color, &themecolor);
41          if (!gdk_colormap_alloc_color (colormap, &themecolor, FALSE, TRUE))          if (!gdk_colormap_alloc_color (colormap, &themecolor, FALSE, TRUE))
42                  g_warning ("Allocation of color failed in setlabelstyle");                  g_warning (_("Allocation of color failed in setlabelstyle"));
43    
44          gtk_widget_modify_fg (label, GTK_STATE_NORMAL, &themecolor);          gtk_widget_modify_fg (label, GTK_STATE_NORMAL, &themecolor);
45          fnt = pango_font_description_from_string(font);          fnt = pango_font_description_from_string(font);
# Line 57  setframestyle (GtkWidget * frame, gchar Line 58  setframestyle (GtkWidget * frame, gchar
58    
59          gdk_color_parse (color, &themecolor);          gdk_color_parse (color, &themecolor);
60          if (!gdk_colormap_alloc_color (colormap, &themecolor, FALSE, TRUE))          if (!gdk_colormap_alloc_color (colormap, &themecolor, FALSE, TRUE))
61                  g_warning ("Allocation of color failed in setframestyle");                  g_warning (_("Allocation of color failed in setframestyle"));
62    
63          framestyle = gtk_style_copy (frame->style);                      framestyle = gtk_style_copy (frame->style);            
64          framestyle->bg[GTK_STATE_NORMAL] = themecolor;          framestyle->bg[GTK_STATE_NORMAL] = themecolor;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26