[EMAIL PROTECTED]

2005-02-24 Thread Pramod Patangay
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 E

NULL GdkPixbuf

2005-04-22 Thread Pramod Patangay
Hi All, I have written a small program (attached below) and am facing a problem in it. I am trying to create a GdkPixbuf out of a "png" file. But I am getting a NULL value. This does not happen with "bmp" files. I am working on Solaris 8. Has any one got any idea why this might be happening? Am I

Edit Box in GtkFileChooserDialog

2005-05-28 Thread Pramod Patangay
Hi, I would like to have an edit box in GtkFileChooserDialog for opening files (and not saving) so that when user types in something ni the edit box and presses tab the filename should appear in the edit box and the file should be shown selected in the file list. Is there any easy way to do this?

Diabling an entry in TreeView

2005-05-30 Thread Pramod Patangay
Hi, I have a treestore and corresponding model and treeview. I would like to disable a particular entry in the treeview. How can I do this? Thanks ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

GtkComboBox

2005-05-31 Thread Pramod Patangay
Hi, I was trying out GtkComboBox. I have Gtk-2.4. I have created a GtkTreeModel and populated the corresponding GtkTreeStore. But when I run the program, the entries are not shown. Why is this happening? I am attaching the program here: GtkTreeStore *ts = gtk_tree_store_new(1,G_TYPE_STRING);

Re: GtkComboBox

2005-05-31 Thread Pramod Patangay
Hi Michael, If I am not wrong, with tree model we can even display images and text together as part of the menu items. This is the reason why I chose to use tree model. If there was only text then you are correct. Thanks to Neumann for pointing out what I was missing in the code. -Pramod On 5/3

GtkComboBox again

2005-06-02 Thread Pramod Patangay
Hi, Is there any way to add a separator in the GtkComboBox. I am using combo box with a tree model. Also I need to add markup properties that applies to a whole column. How do I do that? I tried the following code, but it doesn't work. ts = gtk_tree_store_new(1,G_TYPE_STRING); GtkWidget *tv = gtk

GtkCombo does not send signal

2005-06-24 Thread Pramod Patangay
Hi, I am using GTK 2.4 and facing a problem with GtkCombo. I populated a GtkCombo with entries. I want to catch signals when the selection changes. I am handling "changed" signal on the combo. I would like to know even if the selection was not changed but the user popped up the combo and selected

Re: GtkCombo does not send signal

2005-06-27 Thread Pramod Patangay
"activate" signal on which widget? GtkComboBox doesn't have any such signal. On 6/24/05, Preben Randhol <[EMAIL PROTECTED]> wrote: > On Fri, Jun 24, 2005 at 08:54:11PM +0530, Pramod Patangay wrote: > > Hi, > > > > I am using GTK 2.4 and facing a problem

GtkComboBox

2005-07-01 Thread Pramod Patangay
Hi, I asked this question previously but there were no replies. So here I am again. I would like to disable a particular entry in the GtkComboBox. I am using a GtkComboBox with a model and supplying it cell renderers. If disabling a particular entry is not possible, can I at least change the look

GtkComboBox focus issue

2005-07-07 Thread Pramod Patangay
Hi, I am trying to grab focus to GtkComboBox but focus is not set to it. Here's a sample program. What's wrong with the code? gboolean kp(GtkWidget *w, GdkEvent* e, gpointer d) { printf("Key Pressed\n"); gtk_widget_grab_focus(GTK_WIDGET(d)); return TRUE; } int main( int

Installation Error

2004-05-19 Thread Pramod Patangay
Hi, This is my first mail to this list so my problem might have been faced by others previously. If that is so please provide the link. I am trying to install GTK on solaris8. Before that I have to install Glib,Pango and atk. While building GLIb, I get an error. I am using these variables exp

gtk_widget_add_accelerator

2004-08-17 Thread Pramod Patangay
Hi All, I am having trouble with adding acclerators. I want the "Shift Ctrl Minus" key to map to some event. Here's what I am doing: gchar * label = ...; GtkWidget *menuItemWidget = gtk_menu_item_new_with_mnemonic(label); ... GdkAccelGroup *accel = ... ; AccelKey = 45; //for "-" key accelMod =

Selecting the region in GtkFileSelection

2004-09-08 Thread Pramod Patangay
Hi, I have created a GtkFileSelection, set the filename and want the filename region to be selected. Here's what I am doing: GtkWidget *a = gtk_file_selection_new("Hmmm"); gtk_file_selection_set_filename(GTK_FILE_SELECTION(a),"TestFile"); GtkWidget *ase = (GTK_FILE_SELECTION(a))->selection_entry

gtk_widget_add_accelerator

2004-09-08 Thread Pramod Patangay
Hi All, I am trying to add an accelerator. Here's a sample code: GtkWidget *w=gtk_window_new(GTK_WINDOW_TOPLEVEL); GtkWidget *e=gtk_button_new_from_stock(GTK_STOCK_OK); GtkAccelGroup *gag = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(w),gag); g_signal_connect(G_OBJECT(e),"clicke

Changing the shortcut text for menus

2004-10-14 Thread Pramod Patangay
Hi, I have to change the text of the default shortcut generated by GTK when I add an accelerator to the menu item. Is there any way to do it? Like if I add '+' as the accelerator, a '+' is shown as the shortcut but I want to it be to "plus". How can I achieve that? Thanks -Pramod

Accelerators don't work

2004-09-29 Thread Pramod Patangay
Hi All, I am trying to add accelerators to menu items. But they don't seem to work as they should. There's a menuitem which when activated will hide the menu bar. But once the menu bar is hidden, none of the accelerators work. I am using Fedora Core. Any idea on what's going on here? Why are acc

Re: Accelerators don't work

2004-10-05 Thread Pramod Patangay
ortcuts are shown as part of the menu item beside its name. Any thoughts on what might be happening here? From: edscott wilson garcia <[EMAIL PROTECTED]> Subject: Re: Accelerators don't work To: Pramod Patangay <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTE

Changing the shortcut names for menu items

2004-10-05 Thread Pramod Patangay
Hi, I have menu item to which I have added an accelerator. GTK automatically displays the shortcut as part of the text beside the menu item name. Is there any way I can change the shortcut string? Say for e.g., I add "ctrl +" as the shortcut, the displayed string is "ctrl++" but I want it to be

ToolTips for GtkTreeview , GtkWindow Decorations

2004-10-20 Thread Pramod Patangay
Hi All, I have two questions: 1) How do I make the cross button on the GtkWindow to not appear. What I want is just the window title bar without any minimize, maximize, cross buttons. 2) How do I provide tooltips to the cells in a treeview? Thanks -Pramod _

Custom Drawing on a GtkTreeView

2004-12-15 Thread Pramod Patangay
Hi, I have a treeview whose cells will contain some custom drawn image. To achieve this, I am making a treeviewcolumn with pixbuf cellrenderer and I am capturing "expose-event" of the treeview and then draw the image on the window. But this doesn't work. If I don't draw the treeview on the window

Custom Drawn Images in GtkImageMenuItem

2005-01-03 Thread Pramod Patangay
Hi, I am using GtkImageMenuItem in my code and the icon to be displayed is custom drawn. To achieve this, I am creating a GtkDrawingArea widget with proper size and adding it to a GtkHBox. This GtkHBox will be the image in the imagemenuitem. I am handling the expose event (of the drawing area) ca

Creating GdkPixbuf from PNG data

2005-01-07 Thread Pramod Patangay
Hi, I have PNG data in memory which is essentially the contents of a png file. I need to create a GdkPixbuf from this data. How can I do this? Thanks __ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.co

Changing the icon in GtkMessageDialog

2005-01-23 Thread Pramod Patangay
Hi, I would like to use GtkMessageDialog but how can I change the default icon that appears on the dialog using Stock items. I'd like to change the icon for GTK_MESSAGE_INFO type to use say GTK_STOCK_DIALOG_ERROR, how can I achieve this? Thanks

Disabling a row in GtkTreeView

2005-01-24 Thread Pramod Patangay
Hi, I have a GtkTreeView (and corresponding GtkTreeStore and GtkTreeModel etc). I want to disable a particular row so that it can not be selected and also "looks disabled". How can I achieve this? Thanks -Pramod __ Do you Yahoo!? Yahoo! Mail

Getting the Coords of TextView cursor

2005-02-14 Thread Pramod Patangay
Hi, I am using a GtkTextView which is added to a GtkScrolledWindow. Now whenever the GtkTextView gets focus, I want the scrolled window to scroll in such a manner so that the cursor is visible. How can I achieve this? One way I thought of is that, I get the location of iterator where the cursor