pramod_iitg yahoo com

Hi All,

I am observing strange behaviour with GTK (2.2.4)

1)If I have a button in a window as the default widget
of that window, the button appears too small when
focus is on that button. When the focus is out button
appears OK but in both cases w/o the given text. I am
using SuSE 9.1 Personal Edition with Qt as the theme.
Here's a small program to demonstrate this. Has anyone
encountered the same problem? how can I solve this?

Sample Program:
GtkWidget *w = gtk_window_new(GTK_WINDOW_TOPLEVEL);

GtkWidget *l = gtk_layout_new(NULL,NULL);
GtkWidget *b = gtk_button_new_with_label("");
GtkWidget *b2 = gtk_button_new_with_label("EGH_JKL");


2)This is regarding the menus. If I have a menu with
GtkImageMenuItem as the menu items and if images of
the menu items are all of different sizes then the
image is expanded (some space left out at the top and
bottom), may be to make it a square. How do I get the
desired result of images appearing as they should.

3)When I use the color selection dialog provided by
GTK, I get grey colors in the squares of the palette
frame instead of the actual colors. This happens on
SuSE 9.2 Professional. Sample program is attached
below. How do I solve this?

Sample Program
char buf[] = "Choose a color";
GtkWidget *colorSelDlg =
gtk_color_selection_dialog_new (buf);

GtkColorSelection *colorSel = GTK_COLOR_SELECTION
(GTK_COLOR_SELECTION_DIALOG (colorSelDlg)->colorsel);

GdkColor prevColor;
prevColor.pixel = 0; = 65535; = 65535; = 65535;

gtk_color_selection_set_previous_color (colorSel,
gtk_color_selection_set_current_color (colorSel,
gtk_color_selection_set_has_palette (colorSel, TRUE);

int response = gtk_dialog_run (GTK_DIALOG

if (response == GTK_RESPONSE_OK)
	GdkColor color;
	gtk_color_selection_get_current_color (colorSel,

Are there any bugs logged against the above three
strange behaviours? Can you forward me the links, are
is there any other forum which is more appropriate to
send these to?


Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 

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