Re: gfig plug-in and brushes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi,
> I'm having trouble getting the bushes tab in gfig to bring up any brush
> items. The window is totally black.  I'm running the red hat 6.0
> distribution. I've checked and found identical results on two other
> machines that friends of mine have.  These machines run other linux
> distributions, slack ware and debian.  They exhibited the same problem.
> Can anyone help?
> Thanks
> Art


I have had a number of reports about this and it appears to be due to using
gfig in gimp 1.0.y (y > 1) and gtk version 1.2.x. It seems when gimp was 
updated to use gtk 1.2 this got missed.

Included below is a patch that will hopefully fix your problem. Use the "patch"
command to apply it and then gfig will require recompiling. If you have 
problems in applying the patch please let me know.


Andy.


alt@xxxxxxxx

============ Start of patch

--- gfig.c.orig	Sat Aug 21 19:12:36 1999
+++ gfig.c	Sat Aug 21 19:43:58 1999
@@ -3335,6 +3335,7 @@
 gfig_get_brushes(GtkWidget *list)
 {
   GtkWidget *list_item;
+  GList *item_list = NULL;
   gint list_item2sel = 0;
   gint nreturn_vals;
   GParam *return_vals;
@@ -3365,7 +3366,7 @@
       bdesc->bpp = 3;
 
       list_item = gtk_list_item_new_with_label(brush_names[i]);
-      gtk_container_add (GTK_CONTAINER (list), list_item);
+      item_list = g_list_append (item_list, list_item);
       bdesc->bname = g_strdup(brush_names[i]);
       gtk_signal_connect(GTK_OBJECT(list_item), "button_press_event",
 			 (GtkSignalFunc) brush_list_button_press,
@@ -3378,6 +3379,8 @@
 	  list_item2sel = i;
 	}
     }
+
+  gtk_list_append_items (GTK_LIST (list), item_list);
   
   if(fbdesc != (BRUSHDESC*)-1)
     {
@@ -3528,6 +3531,7 @@
   gtk_widget_show (scrolled_win);
 
   list = gtk_list_new ();
+  gtk_widget_show(list);
   gtk_list_set_selection_mode (GTK_LIST (list), GTK_SELECTION_SINGLE);
   gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_win),
 					 list);


=========== end of patch







[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux