Re: C#/Mono and GNOME 3.0

2010-06-16 Thread Javier Jardón
2010/6/17 Daniel Espinosa : > Mono's Gtk+, as far as I know, requires an older Gtk+ 2.10 or 2.14 based for > Gtk#, Is this online with GNOME/GTK+ 3.0? Any Gtk# based application will be > an exception? Reading their page: [1], seems that they plan to switch to GTK+3 in the next release. > Or Mono

C#/Mono and GNOME 3.0

2010-06-16 Thread Daniel Espinosa
Mono's Gtk+, as far as I know, requires an older Gtk+ 2.10 or 2.14 based for Gtk#, Is this online with GNOME/GTK+ 3.0? Any Gtk# based application will be an exception? Or Mono will use GObject Introspection in order to get updated automatically? -- Trabajar, la mejor arma para tu superación "de

Mouse release event not received when unmap occurs during drag event

2010-06-16 Thread Alex Kilgore
Hello, I am new to this list, so if this inquiry should be sent elsewhere, please let me know I have run across an issue in a few GTK applications, (namely Pidgin and Firefox) and I was wondering if I could get an opinion as to where this needs to be reported. First let me give some c

Re: gtkcombobox with self internal code to the options

2010-06-16 Thread John Williams
Other question, how can I set the active option? gtk_combo_box_set_active? 2010/6/16 John Williams : > Yes Tadej, you understand perfectly. > > Thank you for the example! > > 2010/6/15 Tadej Borovšak : >> Hello. >> >> If I understand you correctly, you want to store name and ID of your >> field in

Re: Newbie

2010-06-16 Thread Manu Kaul
Thanks Ian! Will look into it in more detail now. On Wed, Jun 16, 2010 at 3:56 PM, Ian Liu Rodrigues wrote: > Attached there is an example of usage > > Regards, > Ian L. > > > On Wed, Jun 16, 2010 at 10:32 AM, Manu Kaul wrote: > >> Hi Ian, >> I have already looked at that API but I am just wonde

Re: Newbie

2010-06-16 Thread Manu Kaul
Hi Tadej, Thanks for the reply. I been reading through the API and it looks good to me, but I have a few gaps remaining :) 1. I have to add another pointer to each of these nodes... do you suggest I add it to my data as part of the data struct? 2. Also I was wondering if I could please get some he

Re: Newbie

2010-06-16 Thread Ian Liu Rodrigues
Attached there is an example of usage Regards, Ian L. On Wed, Jun 16, 2010 at 10:32 AM, Manu Kaul wrote: > Hi Ian, > I have already looked at that API but I am just wondering if I can see some > sample code to see how it all hangs together and get a better idea? > > Cheers! > > On Wed, Jun 16,

Re: How to get Width and height..

2010-06-16 Thread Tadej Borovšak
Hello. To obtain GdkScreen which is associated with your GtkWindow, use gtk_window_get_screen(). But keep in mind that screen doesn't always mean physical monitor, since in multi-headed settings, one screen can stretch over multiple monitors. To obtain monitor size, you'll need to use gdk_screen_

Re: Newbie

2010-06-16 Thread Tadej Borovšak
Hello. GNode is really a simple structure with 4 pointers to nodes (parent, first child, previous and next sibling), which allow you move inside tree, and one pointer to user data. You can store just about anything inside user data pointer, but most applications store pointer to some heap-allocate

Problems with tear-off menus

2010-06-16 Thread Ken Resander
On Ubuntu 10.04 I have some normal drop down menus that would be more useful as tear-off menus (i.e. as draggable menus that pop up and stay in the window/dialog). FOR TOPWINDOW: To make the tear-off menu appear I use the code: [code]    gtk_menu_set_tearoff_state ((GtkMenu *)m->menuwidget, tr

Re: gtkcombobox with self internal code to the options

2010-06-16 Thread John Williams
Yes Tadej, you understand perfectly. Thank you for the example! 2010/6/15 Tadej Borovšak : > Hello. > > If I understand you correctly, you want to store name and ID of your > field inside combo box and retrieve it when needed. If this is true, > have a look at this snippet of code that demonstrat

Re: How to get Width and height..

2010-06-16 Thread Nicola Fontana
Il giorno Wed, 16 Jun 2010 15:42:09 +0530 Lohitha R ha scritto: > Hi all, > > Is there any way to get the screen resolution(monitor) in > gtk..?? If by resolution you mean size in pixels, you could use gdk_screen_get_{width,height}() with the default screen. http://library.gnome.org

Re: How to get Width and height..

2010-06-16 Thread Ken Resander
Try this for screen resolution void getscreenres ( int * widthret , int * heightret )    {    GdkScreen * screen = gtk_window_get_screen(GTK_WINDOW(window));    *widthret = gdk_screen_get_width(screen); // in pixels    *heightret = gdk_screen_get_height(screen);    } --- On Wed, 16/6/10, Lohitha

Newbie

2010-06-16 Thread Manu Kaul
Hi All, I am a newbie to this mailing list and I want to implement a n-ary tree and came across "GNode" in glib and wanted to see if there was some good sample code that I could look at to see how I can go about setting up this tree. Also I needed the ability to be able to work upwards from a node

How to get Width and height..

2010-06-16 Thread Lohitha R
Hi all, Is there any way to get the screen resolution(monitor) in gtk..?? or is there any way to get the size of the maximized gtk window(gtk widget) in gtk. I tried with gtk_window_get_default_size and gtk_window_get_size.. But I didn't get the expected result.. please gui

Can't copy the right image from window

2010-06-16 Thread Tigran Piloyan
Hi, i tried to copy from the GdkWindow an image with the function gdk_drawable_copy_to_image() but everytime i get different images under Ubuntu with gnome, in KDE it allways copied the right image . I tried to set USE_XFT = 0 to disable antialiasing, but it didn't help. Please look at the attach