Re: Alignemnt of GtkCheckButton.

2007-01-29 Thread Emmanuele Bassi
On Mon, 2007-01-29 at 12:23 +0530, Manas Hazarika wrote:
> Hi,
> 
> I am using gtk-2.6. My problem is I want check boxes created using
> gtk_check_button_new () and gtk_check_button_new_with_label () to be
> aligned in the same y-axis. Currently, when we create a check button
> using gtk_check_button_new_with_label () and place it below a check
> button created using gtk_check_buton_new () they are not aligned to
> the same y-axis. 

what do you pack into the check button created using the
gtk_check_button_new() constructor?  and, more importantly: how do you
pack it?  until we know what you are doing there's no way we can tell
you what you are doing wrong and fix it.

instead of randomly commenting out stuff from GTK+ widgets, you should
understand packing and alignment.  anyway, if you are manually packing a
widget into a GtkCheckButton you can control the alignment of the widget
and its padding using a GtkAlignment.

and you should mail the appropriate mailing list too: these questions
belong to gtk-app-devel-list - gtk-devel-list is the mailing list for
developing the GTK+ library, not with the GTK+ library.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: [EMAIL PROTECTED]
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Alignemnt of GtkCheckButton.

2007-01-29 Thread Manas Hazarika
Hi,

I am using gtk-2.6. My problem is I want check boxes created using
gtk_check_button_new () and gtk_check_button_new_with_label () to be aligned
in the same y-axis. Currently, when we create a check button using
gtk_check_button_new_with_label () and place it below a check button created
using gtk_check_buton_new () they are not aligned to the same y-axis. 

 

Hence I commented out these three lines from
gtk_real_check_button_draw_indicator ():

  child = GTK_BIN (check_button)->child;

  if (!interior_focus || !(child && GTK_WIDGET_VISIBLE (child)))

   x += focus_width + focus_pad;   

 

All the check boxes are now aligned to a single y-axis. I would like to know
if commenting out these lines will produce any side effects.

 

Thanks,

Manas.

 

 

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Alignemnt of GtkCheckButton.

2007-01-28 Thread Manas Hazarika
Hi,

I am using gtk-2.6. My problem is I want check boxes created using
gtk_check_button_new () and gtk_check_button_new_with_label () to be aligned
in the same y-axis. Currently, when we create a check button using
gtk_check_button_new_with_label () and place it below a check button created
using gtk_check_buton_new () they are not aligned to the same y-axis. 

 

Hence I commented out these three lines from
gtk_real_check_button_draw_indicator ():

  child = GTK_BIN (check_button)->child;

  if (!interior_focus || !(child && GTK_WIDGET_VISIBLE (child)))

   x += focus_width + focus_pad;   

 

All the check boxes are now aligned to a single y-axis. I would like to know
if commenting out these lines will produce any side effects.

 

Thanks,

Manas.

 

 

___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list