gtk+

GLib-GObject-CRITICAL warnings

I'm confused by these two warnings. Can anyone explain how I might have come about triggering them, and how they would be able to be debugged in gdb? (gtkworkbook:24668): GLib-GObject-CRITICAL **: g_cclosure_new: assertion `callback_func != NULL' failed (gtkworkbook:24668): GLib-GObject-CRITICAL **: g_signal_connect_closure_by_id: ass...

Why gtk+ pass by reference!?

Hii!, i'm programming in C/GTK+, but i don't understood yet why, when I call a function, like gtk_label_set_text (GTK_LABEL (label), "some text"); for example, i don't need to pass the reference of label pointer to the function. I learned that C pass all arguments as value, than, the function will don't affect the Widget label, in other...

gtk_menu_item_new_with_labelex vs gtk_menu_item_new_with_label

what is the difference between these two function calls: menu_item_new_with_labelex vs gtk_menu_item_new_with_label ...

Gui for KDE and Gnome

I want to write a gui to an application that is now CLI that needs to "look good" in both KDE and Gnome DE's, taking optimal advantage of a users settings for appearance. If I select Qt or GTK+ will I be able to do this? Do they integrate well with both DE's? Or does a KDE user need gnome libs and vice versa to run them? My developme...

GTK+ GTkStatusIcon not working in Win32

I cannot get GTkStatusIcon working in Windows and I get no errors. And I make a call to both gtk_status_icon_set_from_file and gtk_status_icon_new_from_file. Does anyone have any idea what could be causing this? I tried with .ico files and .png and still nothing... ...

How do you enable auto-scrolling on GtkSourceView2?

I am having a problem with GtkSourceView used from Python. Two major problems: 1) When a user types text into the GtkSourceView, and types past the bottom of the visible text, the GtkSourceView does not autoscroll to the users cursor. This wouldnt be so bad, except: 2) The arrow keys, page up and page down keys, do not cause the GtkSour...

How do I read or write GTK TreeStores from/to files?

Hi! I'm new to this. How do I store a TreeStore to a file? I can store specific values from the underlaying TreeStore through the TreeModel interface, but is there any way of "grabbing" the whole underlaying TreeStore as a value, or do I have to traverse the TreeStore, storing a row at a time? /J ...

Why does my simple GTK+ based app take 8 seconds to start up?

Hi folks, I wrote a GTK+ app whose .exe is small, but of course like all GTK+ apps it links with many DLLs (under Windows). What my program does at this point is construct a GUI that consists of a GtkWindow, GtkTable, and about 12 others widgets. That's it. Yet when I start it up it takes about 8 seconds on my 2 GHz WinXP machine. Is ...

use gtk_signal_connect with a member function in c++

What's the best way to connect a GTK+ signal to a non-static member function? I have a GUI class in c++ that uses gtk, and i want do something like this: Gui::Gui () { gtk_signal_connect(GTK_OBJECT(somObject), "clicked", GTK_SIGNAL_FUNC( &(this->ClickHandler) ), NULL); } ...

How to create gtk+ windows without title bar?

How to create gtk+ windows without title bar(header) in linux? ...

create and emit gtk signal

I am trying to create and emit a GTK signal: g_signal_new("child-finished", G_TYPE_OBJECT, G_SIGNAL_RUN_FIRST, 0, NULL, NULL, NULL, // *** I think this is where I need to change it G_TYPE_NONE, 0); g_signal_connect(G_OBJECT(myWindow), "child-finished", G_CALLBACK(MyCallback), NULL); Here is my code th...

Compiling GTK+ Application with G++ compiler.

I am writing an application in C++ with using GTK+ (not gtkmm) so I need to compile using g++ compiler. Is it possible to compile GTK+ applications with the g++ compiler? Are GTK+ and libraries compatible with g++ compiler? I am trying to embed GTK+ functions call in a class like follows: #include <gtk/gtk.h> class LoginWindow { pu...

Updating Widget in GtkVBox.

I have a GtkVBox with some labels and some empty blocks in it ... I have created this window + vBox in Glade3... Working under C. +----------------+ |Lable1 | +----------------+ |EMPTY | +----------------+ |Label2 | +----------------+ |Lable3 | +----------------+ On some external events i w...

Gtk How to add GtkMenu widget at end edge of widget.

I have a GtkMenu Widget and i am adding it to screen on button click,, but it gets added at mouse location but i want to add it to end edge of button widget like, +-------+ |BUTTON | +-------+ +------------+ |Menu Item 1 | |Menu Item 2 | +------------+ I am using following code to add popup menu // Add popup menu. gtk_menu_po...

GTK Modifying Background Color of GtkButton.

Trying to change background/foreground color....Using Gtk+ and C. GdkColor color; gdk_color_parse( "#0080FF", &color ); gtk_widget_modify_fg( GTK_WIDGET(button), GTK_STATE_SELECTED, &color ); gtk_widget_modify_fg( GTK_WIDGET(button), GTK_STATE_NORMAL, &color ); I am using above functionality but it is not giving any results. ...

Which GTK+ Widget to chose for this requirement?

Hello, I have a requirement in which i need to display in formation in a table with 4 columns with header to it. +-----------------+-----------------+-----------------+ |Header 1 |Header 2 |Header 3 | +-----------------+-----------------+-----------------+-+ |GtkLabel Info 1 | GtkLabel Info 1 | GTKImage Info 1 ...

Problem with use of GtkeventBox "button-release-event" event.

Hi All, I am using a event box(GtkeventBox) and on top of that I am adding a button image(GtkImage). I am connecting "enter-notify-event", "leave-notify-event", "button-release-event","button-press-event", to Event box. Problem is that when I click(Mouse button down) on event box and drag mouse out side Event box area and releasing mou...

Scaling an image to its parent button size in GTK?

I have a GTK layout with a widget on the left of an HBox deciding the maximum height I want, and a VBox on the right containing three buttons, each containing only an image and no text. The images are a GTK stock icon, and so have the stock storage type. Using expand=True, fill=True packing the buttons without images are exactly the hei...

Gtk volume control bar

Hi There, I want this kind of volume control bar shown in image. Is there any GtkWidget? Thanks, KBalar ...

Statically linking GTK+ libaries in windows

I have installed GCC and GTK+. Its working fine, but i need to statically link GTK+ libraries with my application (its a small application) so that there exist only one '.exe'. Can anybody suggest a solution for this problem...? ...