[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: gtkitementry_1_2.c



  User: cnieves 
  Date: 05/04/10 07:27:03

  Modified:    .        gtkitementry_1_2.c gtkitementry_2_2.c
                        gtksheet_1_2.c gtksheet_2_2.c
  Log:
  Fixed segmentation fault because of lacking of "default_border" and 
  
  "default_outside_border" properties.
  
  
  
  
  Revision  Changes    Path
  1.4       +13 -0     eda/geda/devel/gattrib/src/gtkitementry_1_2.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gtkitementry_1_2.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/src/gtkitementry_1_2.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- gtkitementry_1_2.c	14 Feb 2005 22:31:35 -0000	1.3
  +++ gtkitementry_1_2.c	10 Apr 2005 11:27:02 -0000	1.4
  @@ -280,6 +280,19 @@
     editable_class->set_selection = gtk_entry_set_selection;
     editable_class->set_position = gtk_entry_set_position_from_editable;
   
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-border",
  +							       NULL, /* P_("Default Spacing"),*/
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
  +
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-outside-border",
  +							       NULL, /* P_("Default Outside Spacing"), */
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons that is always drawn outside the border"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
   }
   
   
  
  
  
  1.5       +13 -0     eda/geda/devel/gattrib/src/gtkitementry_2_2.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gtkitementry_2_2.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/src/gtkitementry_2_2.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- gtkitementry_2_2.c	5 Feb 2005 16:03:53 -0000	1.4
  +++ gtkitementry_2_2.c	10 Apr 2005 11:27:02 -0000	1.5
  @@ -260,6 +260,19 @@
     entry_class->insert_at_cursor = gtk_entry_insert_at_cursor;
     entry_class->delete_from_cursor = gtk_entry_delete_from_cursor;
   
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-border",
  +							       NULL, /* P_("Default Spacing"),*/
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
  +
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-outside-border",
  +							       NULL, /* P_("Default Outside Spacing"), */
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons that is always drawn outside the border"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
   }
   
   static void
  
  
  
  1.4       +14 -3     eda/geda/devel/gattrib/src/gtksheet_1_2.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gtksheet_1_2.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/src/gtksheet_1_2.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- gtksheet_1_2.c	11 Mar 2005 17:50:56 -0000	1.3
  +++ gtksheet_1_2.c	10 Apr 2005 11:27:02 -0000	1.4
  @@ -75,9 +75,6 @@
   #define DEFAULT_FONT_ASCENT(widget) (widget->style->font->ascent)
   #define DEFAULT_FONT_DESCENT(widget) (widget->style->font->descent)
   
  -static GtkBorder default_border = { 1, 1, 1, 1 };
  -static GtkBorder default_outside_border = { 0, 0, 0, 0 };
  -
   
   /*-----------------------------------------------------------------------------*/
   /* scrollbar spacing class macro */
  @@ -772,6 +769,20 @@
     klass->clear_cell = NULL;
     klass->changed = NULL;
   
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-border",
  +							       NULL, /* P_("Default Spacing"),*/
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
  +
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-outside-border",
  +							       NULL, /* P_("Default Outside Spacing"), */
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons that is always drawn outside the border"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
  +
   }
   
   static void
  
  
  
  1.7       +13 -3     eda/geda/devel/gattrib/src/gtksheet_2_2.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gtksheet_2_2.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/src/gtksheet_2_2.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- gtksheet_2_2.c	11 Mar 2005 17:50:56 -0000	1.6
  +++ gtksheet_2_2.c	10 Apr 2005 11:27:02 -0000	1.7
  @@ -102,9 +102,6 @@
   #define CELLOFFSET 4
   #define DEFAULT_COLUMN_WIDTH 80
   
  -static GtkBorder default_border = { 1, 1, 1, 1 };
  -static GtkBorder default_outside_border = { 0, 0, 0, 0 };
  -
   static inline guint DEFAULT_ROW_HEIGHT(GtkWidget *widget) 
   { 
     if(!widget->style->font_desc) return 24;
  @@ -905,6 +902,19 @@
     klass->clear_cell = NULL;
     klass->changed = NULL;
   
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-border",
  +							       NULL, /* P_("Default Spacing"),*/
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
  +
  +  gtk_widget_class_install_style_property (widget_class,
  +					   g_param_spec_boxed ("default-outside-border",
  +							       NULL, /* P_("Default Outside Spacing"), */
  +							       NULL, /* P_("Extra space to add for CAN_DEFAULT buttons that is always drawn outside the border"), */
  +							       GTK_TYPE_BORDER,
  +							       G_PARAM_READABLE));
   }
   
   static void