Re: GTK with GCC 4.1 on Fedora Core 5

2006-05-04 Thread David Necas (Yeti)
On Wed, May 03, 2006 at 09:17:59PM -0600, Karihaloo, Ujjval wrote: ./configure: line 5028: syntax error near unexpected token `1.2.0,' ./configure: line 5028: `AM_PATH_GTK(1.2.0, ,' configure was generated on a system lacking gtk+-devel, AM_PATH_GTK() was undefined then and thus left

Re: Changing font of TreeView column header

2006-05-02 Thread David Necas (Yeti)
On Tue, May 02, 2006 at 05:30:49PM +0200, Hannes Mayr wrote: I'm looking for a way to set font and font size for the treeview column header. Changing the font of the CellRenderer is no problem, but all attempts to change the font of the treeview header didn't work. It does not seem possible

Re: GTK Image Widget, Inline animation Pixbufs

2006-04-30 Thread David Necas (Yeti)
On Sun, Apr 30, 2006 at 10:25:37PM +0100, Rob Kendrick wrote: On Mon, 2006-04-10 at 15:30 +0100, Rob Kendrick wrote: Is it possible to seed a GdkPixbufAnimation from inline data created by gdk-pixbuf-csource? There doesn't appear to be the corresponding function to

Re: GKeyFile Struct Missing?

2006-04-28 Thread David Necas (Yeti)
On Fri, Apr 28, 2006 at 09:35:49AM -0400, Brian Clow wrote: I'm developing an application that's heavily based on Glib for portability reasons. I'm using GLib 2.10.1, and I'm trying to use the GKeyFile parser class, but I'm receiving an error when compiling both using visual studio 6.0 and

Re: How to catch mouse events from a GtkImage?

2006-04-26 Thread David Necas (Yeti)
On Wed, Apr 26, 2006 at 02:32:18AM -0300, Damián Cinich wrote: I have a little piece of code where I connect the signals corresponding to the mouse events to a GtkImage, and then the callback prints a message when it detect some of these signals, but it doesn't seems to work. If I connect them

Re: correction in gtk-runtime 2.8.17

2006-04-25 Thread David Necas (Yeti)
On Tue, Apr 25, 2006 at 05:52:55AM +0200, Benoit Carpentier wrote: Hi everybody, A new version of gtk runtime 2.8.17 is released. There was a trouble with Pango because the name of the folder is not 1.4.0 but 1.5.0 now. So the installer is changed and should work now. Regards, Benoît

Re: correction in gtk-runtime 2.8.17

2006-04-25 Thread David Necas (Yeti)
On Tue, Apr 25, 2006 at 08:20:08AM -0600, Michael Torrie wrote: Umm, because this is a list about developing applications using gtk. The gtk runtime is a collection of all the files needed so that an end user can run gtk applications. GTK applications are of no value to anyone without the

Re: Set up callbacks for dynamically created buttons

2006-04-22 Thread David Necas (Yeti)
On Sat, Apr 22, 2006 at 09:22:44AM +0200, Daniel Pekelharing wrote: gint button_callback(GtkWidget *button, gint i) { printf(Button %d was clicked\n, i); } and connect to it like: g_signal_connect(G_OBJECT(buttons[i]), clicked, G_CALLBACK(button_callback), (gpointer)i) Please

Re: Scroll WIndow with GtkTreeView

2006-04-21 Thread David Necas (Yeti)
On Fri, Apr 21, 2006 at 10:47:24AM +0530, Sailaxmi korada wrote: In my application, I'm placing my TreeView widget in a scrolled window. When I'm scrolling down the list, my headers are getting scrolled up, so they are no more visible. Is there any way to retain the headers in the visible

Re: Scroll WIndow with GtkTreeView

2006-04-21 Thread David Necas (Yeti)
On Fri, Apr 21, 2006 at 01:00:10PM +0530, Sailaxmi korada wrote: abnormal way. Is there any other way that I can make them move in sync... and be scrolled together. Without Viewport, the table is behaving in an My application requires Tree Widget and Table to be placed in same container Since

Re: can't ercieve data passed to g_signal_connect

2006-04-21 Thread David Necas (Yeti)
On Fri, Apr 21, 2006 at 12:45:35PM +0100, rachit goel wrote: g_signal_connect ((gpointer)eventt[iter],leave_notify_event, G_CALLBACK (mouse_leave1),data1); g_signal_connect ((gpointer)eventt[iter],button_press_event, G_CALLBACK (tab_click1), data1);

Re: Copy GtkListStore

2006-04-20 Thread David Necas (Yeti)
On Thu, Apr 20, 2006 at 05:42:51PM +0400, Dubravin Andrey wrote: How to create copy of GtkListStore, not object reference? Need to create copy of all data in GtkListStory. Get the number of columns with gtk_tree_model_get_n_columns() and their types with gtk_tree_model_get_column_type(), create

Re: can't ercieve data passed to g_signal_connect

2006-04-20 Thread David Necas (Yeti)
On Thu, Apr 20, 2006 at 08:25:57PM +0100, rachit goel wrote: i am having a problem You have the problem... i just can't recieve the data passed to signal handler using g_signal_connect() . it always gets messed up. ...you did not post enough information. What's your code? Yeti --

Re: problem: gtk_image gives critical error

2006-04-18 Thread David Necas (Yeti)
On Tue, Apr 18, 2006 at 03:05:51AM -0700, Deependra Shekhawat wrote: Hello friends, This is my code: struct splash { GtkWidget *splash_image; }; void func1(void) { GtkWidget *img; struct splash p; This structure is created on stack and exists only until the function

Re: problem: gtk_image gives critical error

2006-04-18 Thread David Necas (Yeti)
On Tue, Apr 18, 2006 at 03:42:43AM -0700, Deependra Shekhawat wrote: When I print the address of p in the funcl it prints a address. In the callback function it also prints the same for ptr. Then what's the problem. The address does not change, but the part of stack it points to is

Re: Rendering Problem

2006-04-12 Thread David Necas (Yeti)
On Wed, Apr 12, 2006 at 02:14:05PM +0530, Sailaxmi korada wrote: I'm facing rendering problem with List store. GtkListStore store is the model. It does not render anything. GtkTreeView is the view, i.e. the thing that displays something. Its columns are completely unrelated to the model

Re: g_object_set_data()

2006-04-12 Thread David Necas (Yeti)
On Wed, Apr 12, 2006 at 03:29:50PM +0200, jls wrote: I try to set a glist to a name What does it mean set a glist to a name? with the function g_object_set_data as follow : g_object_set_data(G_OBJECT(DirList),dirlist,pWindow); when I try to get

Re: Accessing filenames from file choosers

2006-04-11 Thread David Necas (Yeti)
On Tue, Apr 11, 2006 at 11:48:17AM +0100, Ross Clement wrote: I create a few file chooser dialogs. These were set up in glade. I can make the dialogs appear, use them, and then make them disappear again. What I can't do is fetch the selected filename from the dialog. Looking around it seems

Re: Choosing a parent class

2006-04-11 Thread David Necas (Yeti)
On Tue, Apr 11, 2006 at 07:35:41PM +0200, Andreas Kotowicz wrote: I created a composite widget which consists of two frames, one of which holds a calendar and a second one which has some buttons. I now ask myself what is the right parent class to choose from. Is it GtkFrame? Why can't I just

Re: 3000 toggle buttons in a table?

2006-04-10 Thread David Necas (Yeti)
On Mon, Apr 10, 2006 at 12:40:12PM +0530, Sailaxmi korada wrote: Address(label) 1-16 radio buttons(represent the binary value) hex value Data of 178 rows is filled in the above structure. But now when I'm selecting a radio button, all the radio buttons in the same column of 178 rows are

Re: 3000 toggle buttons in a table?

2006-04-10 Thread David Necas (Yeti)
You do not set the renderer active property anywhere except in the toggle_cell callback. Therefore it always renders *all* the cells in the last state (active or inactive) some cell was toggled to. You need either a cell data func or to use gtk_tree_view_column_new_with_attributes() to tell the

Re: how to get data into text view

2006-04-09 Thread David Necas (Yeti)
On Sun, Apr 09, 2006 at 05:23:43AM -0700, Deependra Shekhawat wrote: I am developing a application where-in I have to display the output of the command tail -f /var/log/messages into a text view. Now the problem is I know system() to execute the command but how do I re-direct the output of

Re: 3000 toggle buttons in a table?

2006-04-06 Thread David Necas (Yeti)
On Thu, Apr 06, 2006 at 12:24:18PM +0530, Sailaxmi korada wrote: I was trying to fulfill my requirement of 3000 toggle buttons, with list store...that was just fantasticBut I'm held up with another requirement...it is like this... The 16 toggle buttons in a row represent a hex

Re: gtk_button_set_label ERROR

2006-04-06 Thread David Necas (Yeti)
On Wed, Apr 05, 2006 at 10:25:22PM -0700, 3saul wrote: Whenever I call gtk_button_set_label I get the following error and the function does not succeed. GTK-CRITICAL **: gtk_button_set_label: assertion 'GTK_IS_BUTTON (button) failed. Is there a common reason for this error? When you

Re: gtk_button_set_label ERROR

2006-04-06 Thread David Necas (Yeti)
On Thu, Apr 06, 2006 at 03:55:33AM -0700, 3saul wrote: GtkWidget *button1 = 0; NULL can be hardly used as a GtkButton. Yeti -- That's enough. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Widget Type Checking

2006-04-05 Thread David Necas (Yeti)
On Wed, Apr 05, 2006 at 02:02:02PM -0700, Leon Ross wrote: I have a vbox that contains x number of hboxs. Each hbox contains 2 items, a label and either a GTK_COMBO or a GTK_ENTRY. GtkCombo is deprecated (and superseded by GtkComboBox). Moreover, your layout seems to call for a GtkTable. I

Re: 3000 toggle buttons in a table?

2006-04-04 Thread David Necas (Yeti)
On Tue, Apr 04, 2006 at 10:55:08AM +0530, Sailaxmi korada wrote: Perhaps, my application requires 16 toggle buttons to be placed in each row, that represent a hex value. So I need not write 3000 callbacks for them, instead with one call back I can manage to calculate the hex value, based on

Re: Update text label

2006-04-04 Thread David Necas (Yeti)
On Mon, Apr 03, 2006 at 08:00:57PM -0700, 3saul wrote: I'm very very new to GTK programming. I've created a button which get's it's label from a variable. The text in the variable will change and I need to find out how to 'refresh' the label on the button. gtk_button_set_label() Please at

Re: 3000 toggle buttons in a table?

2006-04-04 Thread David Necas (Yeti)
On Tue, Apr 04, 2006 at 01:47:10PM +0530, Sailaxmi korada wrote: Why I said Tree view doesn't fit my requirement was, in a row I've to display label, 15 toggle buttons, text entry... Like this I've to fill the widgets in 178 rows. Displaying label is fine with List store... But how can I

Re: Update text label

2006-04-04 Thread David Necas (Yeti)
On Tue, Apr 04, 2006 at 05:01:06AM -0700, 3saul wrote: Thanks a lot. However it's for a menu not a button... I'm sorry (there is nothing like menu button, I chose the wrong half of the term). This line: time_date1 = gtk_menu_item_new_with_mnemonic (MENU); I've changed to time_date1 =

Re: 3000 toggle buttons in a table?

2006-04-03 Thread David Necas (Yeti)
On Mon, Apr 03, 2006 at 01:40:25PM -0400, Tristan Van Berkom wrote: Why not use GtkCellRendererToggle w/ GtkTreeView GtkListStore ? Or use a GtkListStore to select your data item and some togglebuttons and whatever other control widgets below your treeview (i.e. the single toggle button

Re: 3000 toggle buttons in a table?

2006-04-03 Thread David Necas (Yeti)
On Mon, Apr 03, 2006 at 11:23:51PM +0200, Gus Koppel wrote: On the other hand, filling the visible area of a treeview with 3000 toggles would still result in suboptimal display performance. Suboptimal maybe, OTOH if you try the example I attached to my previous mail, you can see we are now in

Re: Callbacks and widgets

2006-03-27 Thread David Necas (Yeti)
On Tue, Mar 28, 2006 at 09:38:20AM +0200, Gonzalo Aguilar Delgado wrote: Because receiver callback is getting only the receiver widget, In addition, the callback gets an arbitrary pointer passed as user_data to g_signal_connect(). A pointer can be used to pass anything. This is a very

Re: Issue with gtk+ 2.8.15 for win32

2006-03-25 Thread David Necas (Yeti)
On Fri, Mar 24, 2006 at 09:11:26PM -0600, Nickolai Dobrynin wrote: 1. Use destroy rather than destroy_event as the second argument to your call. destroy is a signal rather than an event. That was confusing. destroy-event (note the use of underscores was deprecated) is a signal too.

Re: stdio and/or network events?

2006-03-25 Thread David Necas (Yeti)
On Fri, Mar 24, 2006 at 10:01:33PM -0500, Dan McMahill wrote: Is there a mechanism in gtk to detect the event of the app being fed some input on stdin and/or via a network socket? See GIOChannels. Yeti -- That's enough. ___ gtk-app-devel-list

Re: Issue with gtk+ 2.8.15 for win32

2006-03-25 Thread David Necas (Yeti)
On Sat, Mar 25, 2006 at 07:11:36AM -0500, Elden Armbrust wrote: The whole thing is quite confusing. The code in the tutorial on the gtk site uses destroy_event, I can see only three signal connections there: to delete_event, destroy, and clicked (of the button), no destroy_event. but uses

Re: difference between g_signal

2006-03-24 Thread David Necas (Yeti)
On Fri, Mar 24, 2006 at 05:18:21PM +0100, Jerome Le Saux wrote: GtkWidget* DirList, // my button pMenuItem = gtk_menu_item_new_with_label(OPENDK); g_signal_connect_swapped(G_OBJECT(pMenuItem), activate, G_CALLBACK(OnOpenDkFile), DirList); It isn't clear what value DirList has

Re: Issue with gtk+ 2.8.15 for win32

2006-03-24 Thread David Necas (Yeti)
On Fri, Mar 24, 2006 at 04:04:53PM -0500, Elden Armbrust wrote: When exiting out of a program written in C using GTK+ 2.8.15, the process does not end (ever) but the window does close. That is correct. Gtk+ does not terminate applications just because some of their windows was closed. So the

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread David Necas (Yeti)
On Fri, Mar 17, 2006 at 03:37:11PM -0700, Plummer, Jeff-P56711 wrote: An application looks strange if the inside boxes have one theme, and the outsides window has a different theme (i.e. default windows titlebar, close, minimize, maximize buttons). There has to be a way to make a windows

Re: how to validate data entry

2006-03-16 Thread David Necas (Yeti)
On Thu, Mar 16, 2006 at 02:34:26PM +0530, shibu alampatta wrote: i want to validate data enry to the entry widget. means, insome cases i want only digits be allowed to enter to the widget, or some times only alphabets and digits no other symbol .. ie entering of unwanted characters need to

Re: Handling Unix signals in a GTK+ application

2006-03-16 Thread David Necas (Yeti)
On Thu, Mar 16, 2006 at 03:40:08PM -0500, Tristan Van Berkom wrote: Yes sure, but why would you want to use a flag... when you can just call g_idle_add *from the signal hanlder* Is g_idle_add() really reentrant? It does not look so at the first sight. Yeti -- That's enough.

Re: Handling Unix signals in a GTK+ application

2006-03-16 Thread David Necas (Yeti)
On Thu, Mar 16, 2006 at 03:55:50PM -0500, Tristan Van Berkom wrote: Well, it locks a mutex before accessing the GMainContext; so if gtk+ is compiled with threads... it should work... unless I'm on crack and mutexes are useless from signal handlers... but I dont think so. Maybe I'm missing

Re: more questions on struct, variables and objects

2006-03-16 Thread David Necas (Yeti)
On Fri, Mar 17, 2006 at 12:35:47AM +0100, Andreas Kotowicz wrote: so I have typedef struct _FooApp { gchar *app_name; GtkWidget *main_window; . . } FooApp; which I use like this: FooApp * create_app (void) { FooApp *app; app = g_new0 (FooApp, 1);

Re: Closing Main window with out Closing the child window

2006-03-10 Thread David Necas (Yeti)
On Fri, Mar 10, 2006 at 09:51:03AM -0500, Prabhakar Muthuswamy wrote: I have a main window (which is a login screen) after I am authenticated this main window should go away and other window should pop up. As of now I am able to pop the second window but the main window is hiding behind

Re: reinitialize application

2006-03-10 Thread David Necas (Yeti)
On Fri, Mar 10, 2006 at 08:57:09PM +0100, Andreas Kotowicz wrote: I tried the destroy and construct way: void on_button4_clicked (GtkButton *button, gpointer user_data) {

Re: Left side widget of Evolution mail client

2006-03-09 Thread David Necas (Yeti)
On Thu, Mar 09, 2006 at 01:23:38PM -0500, Carlos Savoretti wrote: Hi all Can anyone tell me what kind of widget is used in the left side of the main window of Evolution mail client ? The source code of Evolution is freely available, so anyone can tell by looking there (but no, I did not look

Re: change picture and text on button click

2006-03-04 Thread David Necas (Yeti)
On Sat, Mar 04, 2006 at 09:09:26PM +0100, rupert wrote: ... but I only get some error in the bash: (spielkram:7144): GLib-GObject-WARNING **: IA__g_object_get_valist: object class `GtkButton' has no property named `pixbuf' ... void bild_aktualisieren(GtkImage *bild) ... int

Re: how to underline the text of a button [solved]

2006-02-26 Thread David Necas (Yeti)
On Sun, Feb 26, 2006 at 11:03:24PM -0700, Gezim Hoxha wrote: Thanks for this. Line two of the code doesn't work though because there needs to be an argument when gtk_label_new is called, this worked however: GtkWidget *pulse_label = gtk_label_new (Temp Text); You can just pass NULL.

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread David Necas (Yeti)
On Thu, Feb 23, 2006 at 09:22:30AM +0100, Colossus wrote: gchar **array = NULL;: array = gtk_selection_data_get_uris ( data ); while (array[len]) { filename = g_filename_from_uri ( array[len] , NULL, NULL ); Files_to_Add = g_slist_prepend ( Files_to_Add , filename );

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread David Necas (Yeti)
On Thu, Feb 23, 2006 at 09:46:14AM +0100, Colossus wrote: David Necas (Yeti) wrote: You have to free it yourself before freeing the list or ^^ individual elements. ^^^ I did it with g_free (filename) but when I use

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread David Necas (Yeti)
On Thu, Feb 23, 2006 at 10:19:36AM +0100, Colossus wrote: I don't have to store pointers to freed memory but the filename without file:// and escaped sequences that g_filename_from_uri gives me back ! It does not matter whether you free the memory before or after g_slist_prepend(). The

Re: defective GTK app crashes gnome

2006-02-18 Thread David Necas (Yeti)
On Fri, Feb 17, 2006 at 10:01:54PM -0500, Freddie Unpenstein wrote: Maybe a stupid question, but have you tried Ctrl-Alt-KP_Divide to ungrab or the more brutal Ctrl-Alt-KP_Multiply to kill the naughty client? (if you have these enabled) Here's probably an even more stupid question.

Re: defective GTK app crashes gnome

2006-02-12 Thread David Necas (Yeti)
On Sat, Feb 11, 2006 at 09:43:51AM -0500, Freddie Unpenstein wrote: I've managed to trash X while playing with widgets that use grabs... Maybe a stupid question, but have you tried Ctrl-Alt-KP_Divide to ungrab or the more brutal Ctrl-Alt-KP_Multiply to kill the naughty client? (if you have

Re: Resize Event

2006-02-09 Thread David Necas (Yeti)
On Thu, Feb 09, 2006 at 02:51:02PM +0100, Philippe CHAUVAT wrote: I wrote a program (Win32, VC++, Gtk2.8.10rc1, GLADE) which is describe like the following tree: - Window - Vbox - ScrolledWindow - Viewport - DrawingArea with GL support (gtk_widget_set_gl_capability

Re: Simple GDK app segfaults for unknown reason

2006-01-20 Thread David Necas (Yeti)
On Fri, Jan 20, 2006 at 11:36:38AM +0100, László Monda wrote: Hi List, I've just written a simple GDK application that basically converts an input JPEG image to a BMP using a Pixbuf. Unfortunately it segfaults. 8 #include gtk/gtk.h int main(int argc, char *argv[]) {

Re: Problem with popup menus and highlighted items in TreeView

2006-01-19 Thread David Necas (Yeti)
On Wed, Jan 18, 2006 at 10:02:30PM -0600, Gabriel Burt wrote: I have a TreeView (F-Spot's tag list) that has a popup menu. If I have a tag (row) selected and then right-click on a different tag, it first pops up the menu, then (the default handler) selects all the tags in between the two

Re: Differences beetwen ref and weak ref

2006-01-17 Thread David Necas (Yeti)
On Tue, Jan 17, 2006 at 05:35:33PM +, Uzytkownik wrote: I'm so sorry - when should I use weak reference? Weak reference is a method to get notified that an object was destroyed. Maybe it is better to not think about them as about references at all. When you take a [real] reference on an

Re: key press events and gtk_dialog_new_with_buttons()

2006-01-11 Thread David Necas (Yeti)
On Wed, Jan 11, 2006 at 06:54:46PM +1100, Richard Gipps wrote: I applied this function to the three entries but it only works on one of them (the first entry I apply it to). Note that I have tried them all on their own (by commenting out the other two) and they work fine. Any ideas?

Re: key press events and gtk_dialog_new_with_buttons()

2006-01-10 Thread David Necas (Yeti)
On Tue, Jan 10, 2006 at 12:51:27PM +1100, [EMAIL PROTECTED] wrote: I have created a dialogue window using gtk_dialogue_new_with_buttons (see below) and attached a callback function to the response event. gtk_dialog_new_with_buttons(Y-Axis Scales, NULL,

Re: Changing the tab order in a dialog

2006-01-09 Thread David Necas (Yeti)
On Mon, Jan 09, 2006 at 03:07:14AM -0800, Suresh Stephen wrote: I have created a GUI using GTK and i have created a dialog box which will contain multiple entries. In the following fashion entry 1entry 5 entry 2

Re: GtkTreeView only displays one column

2006-01-09 Thread David Necas (Yeti)
On Mon, Jan 09, 2006 at 02:23:08PM +, Tony Houghton wrote: I've distilled my code down to a standalone program. Hopefully now someone else will easily be able to play with it and see what's wrong. The column becomes visible when you (a) do not set sizing mode to GTK_TREE_VIEW_COLUMN_FIXED

Re: gtk label size

2006-01-02 Thread David Necas (Yeti)
On Mon, Jan 02, 2006 at 06:24:03PM +0100, Fernando Apesteguía wrote: Suppose that the window where labels are located is size-fixed. The problem comes when I create the label longer enough (Great Mistake!!!) for most of languages... Normally the text is something like x but in some .po

Re: How to set a button to be activated when i press the enter key

2005-12-31 Thread David Necas (Yeti)
On Sat, Dec 31, 2005 at 03:39:59AM -0800, Suresh Stephen wrote: Just wanted to know one thing , for example consider i have a text entry and two buttons ok and cancel . Wat i want to perform is after adding some data to the entry i just want to press enter so that the ok button is

Re: building modules/plugins (GModule) in a portable way

2005-12-31 Thread David Necas (Yeti)
On Thu, Dec 29, 2005 at 01:15:02PM +0100, Olivier Sessink wrote: we have excellent portable GModule functions for module loadingin glib, but how do we compile them in a portable way? I thought libtool was the solution, but I have little success there. My plugin uses symbols that are exported

Re: Beginner with GTK

2005-12-28 Thread David Necas (Yeti)
On Tue, Dec 27, 2005 at 06:03:52PM -0200, Joddy Schäfer wrote: Hi, is GTK cross-plataform? Yes, it is. I use windows xp, so if I write a code using GTK will it work on some othre OS? The mere fact you used Gtk+ for GUI does not make all your code portable. But the Gtk+ part will be

Re: gtk expander

2005-12-23 Thread David Necas (Yeti)
On Fri, Dec 23, 2005 at 03:31:41PM +0100, Fernando Apesteguía wrote: I have a problem with gtk expander. I create that object and put it in the window, using Glade. But how can I attach controls to the expander so when I click on it the controls are showed and when click again they aren't?

Re: Problem with glib-mkenums

2005-12-19 Thread David Necas (Yeti)
On Mon, Dec 19, 2005 at 08:59:26AM +0100, Maciej Piechotka wrote: Ok. In makefile it's more clear. But what's $(enum_headers)? Headers that contain the enum declarations you want to process with glib-mkenums. Yeti -- That's enough. ___

Re: Problem with glib-mkenums

2005-12-18 Thread David Necas (Yeti)
On Sun, Dec 18, 2005 at 12:40:46PM +0100, Maciej Piechotka wrote: I'd like to use glib-mkenums. I've tried to use it, but I have no idea how to use it. Could somebody give me an example of file and what should by in command line. If some example is in GNOME CVS please give me in which

Re: Gtk+ Version compatibilty?

2005-12-18 Thread David Necas (Yeti)
On Sun, Dec 18, 2005 at 03:35:30PM +0200, Daniel Pekelharing wrote: I've been working on an Autoconf system for my app, When it comes to detecting Gtk+, I don't know how early a version I should allow for? On my FC4 system I have Gtk+-2.6.7, should I setup the configure script to pass only

Re: cleanup data set with g_object_set_data()

2005-12-17 Thread David Necas (Yeti)
On Sat, Dec 17, 2005 at 11:45:42AM +0100, Olivier Sessink wrote: if data is set with g_object_set_data(), is that automatically freed if the object is unreffed? No, but you can use g_object_set_data_full() instead and pass something like g_free as the last argument. Of course, the function is

Re: example

2005-11-22 Thread David Necas (Yeti)
On Wed, Nov 23, 2005 at 12:41:12AM +1100, ashley maher wrote: So it occurred to me that a properly written c_handler should return the data required. This has proven not so. ... static void gtree_onSelection (GtkTreeView *treeview, gpointer *data) A properly written callback should have

Re: C/GTK - Packing GtkImage inside GtkEventBox loses reference

2005-11-18 Thread David Necas (Yeti)
On Fri, Nov 18, 2005 at 03:56:52PM -0200, Marcus Reis wrote: g_signal_connect (G_OBJECT (event_box), button_press_event, G_CALLBACK (movimento_do_jogador), image); ... static void movimento_do_jogador(GtkWidget *widget,

Re: apparent leak in widget creation/destroy

2005-11-18 Thread David Necas (Yeti)
On Fri, Nov 18, 2005 at 09:56:24AM -0600, Boncek, John wrote: We have 2 large C++ application programs using GTK 2.2.4 which have had persistent problems in running out of memory. We have narrowed the problem down to a small test case, shown below, which consumes all available memory until

Re: Warning with GTK 2.6. 8 Could not find the icon 'gnome-fs-home'

2005-11-09 Thread David Necas (Yeti)
On Wed, Nov 09, 2005 at 08:28:15AM -0500, Matthias Clasen wrote: It is easy to use hicolor without using GNOME or KDE. IMHO the question is why it has to print such a warning at all, not what people can or cannot use hicolor with. Yeti -- That's enough.

Re: gtk win32 and env variables

2005-11-05 Thread David Necas (Yeti)
On Sat, Nov 05, 2005 at 03:40:40PM +0100, Goran Rakić wrote: Put this first: ... (some win32 registry code) ... Or have a look at g_win32_get_package_installation_directory(). Calling it with NULL arguments is usually sufficient. *Not* storing the directory in registry has the advantage the

Re: g_module...: module calls function of core applicatioin

2005-10-30 Thread David Necas (Yeti)
On Sun, Oct 30, 2005 at 05:43:21PM +0100, Tobias Kipfelsberger wrote: I have a plugin which is registered and loaded with the g_module functions. So far so good everything works find. But how can i let the modul access a function of the coreapplication? Example: in CoreApplication.h:

Re: Mouse over the widget

2005-10-28 Thread David Necas (Yeti)
On Fri, Oct 28, 2005 at 11:55:32AM +0400, Alexander S.Kresin wrote: I can catch the moment when a mouse pointer appears over a widget Have a look at enter-notify-event and leave-notify-event. Yeti -- That's enough. ___ gtk-app-devel-list mailing

Re: GtkFileChooserButton issues

2005-10-14 Thread David Necas (Yeti)
On Thu, Oct 13, 2005 at 04:11:30PM +0200, David Necas (Yeti) wrote: I'm unable to set the button back to the (None) state This was a problem in my code, as it works on a simple example. When it starts in the (None) state, user decides not to select anything and presses Cancel, the file

Re: Is there g_write function?

2005-10-13 Thread David Necas (Yeti)
On Wed, Oct 12, 2005 at 09:07:19PM -0400, Freddie Unpenstein wrote: I must say, I wouldn't mind some of the more common functions being wrapped (if it can be done without excessive overhead). I would call that bloat even if it was done with #define g_write write You'd soon end up with

GtkFileChooserButton issues

2005-10-13 Thread David Necas (Yeti)
Hi, I'm trying to use GtkFileSelectionButton, but... I'm unable to set the button back to the (None) state when nothing is selected. Of course, I can destroy the button and create a new one, but that's not very nice. When it starts in the (None) state, user clicks on some files, but then

Re: Is now gdk-bixbuf the part of gtk+-2?

2005-09-27 Thread David Necas (Yeti)
On Mon, Sep 26, 2005 at 06:02:58PM -0400, John (J5) Palmieri wrote: Actually I believe you do. On Fedora gdk-pixbuf is a separate package so if a developer doesn't have gdk-pixbuf-devel package installed configure should detect this and throw an error. Please don't confuse people. There is

Re: gtk_list_store_new(1, G_TYPE_STRING) and retrieving data

2005-09-07 Thread David Necas (Yeti)
On Wed, Sep 07, 2005 at 08:42:42PM +0200, HuamiSoft Hubert Sokolowski wrote: static gboolean model_foreach (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter,

Re: Yelp compilation problem

2005-09-01 Thread David Necas (Yeti)
On Thu, Sep 01, 2005 at 04:46:26PM +0530, harshavardhanreddy mandeepala wrote: I am using FC3 Now I want to install yelp-2.6.3 in to my linux syatem. But when run ./configure command it is giving error message as fallows ... ... Package libgtkhtml-2.0 was not found in the pkg-config

Re: drawing text in gtkdrawable...

2005-08-21 Thread David Necas (Yeti)
On Sat, Aug 20, 2005 at 09:20:24PM +0200, Marek Florianczyk wrote: works fine, but how do I draw text that I can rotate 360 degrees (eg. draw horizontally from up to down, or draw upside down) Is that matter of PangoLayout and I can change it when I create layout, or can I change it

Re: window stacking problem

2005-08-20 Thread David Necas (Yeti)
On Fri, Aug 19, 2005 at 04:54:35PM -0500, Boncek, John wrote: Using GTK 2.2.4 in an embedded app with fixed resolution, I have a GtkFixedContainer with two children: 1. a GtkDrawingArea containing some drawing. 2. a GtkButton intended to overlay (1). They are created in that order, so I

Re: GList

2005-08-18 Thread David Necas (Yeti)
On Thu, Aug 18, 2005 at 12:52:45AM -0500, Tristan Sloughter wrote: I am using GLists and want to make sure I am freeing all the memory, and not twice or course. There are three possible functions for removing an element from the list: g_list_remove (GList *list, gconstpointer data);

Re: GdkColor to Hexadecimal conversion

2005-08-17 Thread David Necas (Yeti)
On Wed, Aug 17, 2005 at 12:40:13PM +0200, Iago Rubio wrote: On Wed, 2005-08-17 at 20:21 +1000, Nick Watts wrote: Easiest way to convert a GdkColor to its hexadecimal equivalent? If you mean an #RRGGBB string for web use: gchar* // please free me when you're done

Re: Signal when the content of a GtkEntry is changed

2005-08-16 Thread David Necas (Yeti)
On Tue, Aug 16, 2005 at 07:50:59PM +0200, Thym wrote: I would like to know when the content of a GtkEntry is changed. A signal certainly, but what's its name ? http://developer.gnome.org/doc/API/2.0/gtk/GtkEditable.html#GtkEditable-changed Yeti ___

Re: strangeness of g_signal_connect

2005-07-25 Thread David Necas (Yeti)
On Mon, Jul 25, 2005 at 09:18:57AM -0700, Colossus wrote: g_signal_connect ((gpointer) AddFile_button, clicked, G_CALLBACK (on_add_files_activate), dummy); I have noticed that if the function on_add_files_activate is declared with only one parameter,

Re: Window Visibility Signal

2005-07-25 Thread David Necas (Yeti)
On Mon, Jul 25, 2005 at 01:57:02PM -0600, Kevin DeKorte wrote: Nice tip, but unfortunately the expose event does not signal when the object is covered up. Only when revealed. I even hooked event and event-after and nothing was emitted when I covered up the window. Only events were

Re: im-xim.la does not export GTK+ IM module API

2005-07-25 Thread David Necas (Yeti)
On Mon, Jul 25, 2005 at 02:52:38PM +0200, Jirka Pirko wrote: i got following error when compiling gtk - i tried almost everything but error still occurs: Cannot load module /home/peyrak/src/newshot2/kdrive/gtk/gtk+-2.6.8/modules/input/im-xim.la:

Re: Doubt about free or dont free

2005-07-22 Thread David Necas (Yeti)
On Fri, Jul 22, 2005 at 04:31:39PM -0300, Arx Henrique wrote: i have a GtkEntry with a signal activate and this handle: void translate(GtkEntry *widget, gpointer *data) { const gchar *text; text = gtk_entry_get_text(widget); gui_app_notify_new(text); g_free(text);

Re: Displaying 4 numbers on 2 different rows, in a single tree cell

2005-07-14 Thread David Necas (Yeti)
On Thu, Jul 14, 2005 at 12:31:11PM -0500, Nickolai Dobrynin wrote: Is there any way I can display four numbers in a single TreeView cell so that each individual number would occupy the upper left, upper right, lower left and lower right corner, respectively: ___ | 1 2 |

Re: width of string rendered by pango font?

2005-07-12 Thread David Necas (Yeti)
On Mon, Jul 11, 2005 at 11:20:37PM -0400, David Morse wrote: How does one figure out the width of a certain string in a certain pango font? Create a PangoLayout, set the font and text, and then you can use pango_layout_get_extents() or pango_layout_get_pixel_extents() to get the dimensions.

Re: randomly accessing man pages of gtk doc.

2005-07-12 Thread David Necas (Yeti)
On Mon, Jul 11, 2005 at 11:22:04PM -0400, David Morse wrote: Are there no man pages for gtk c functions? I see the web-based doc, but I find myself hopping around from gtk to gdk to glib to pango to gnome, and never having the right index loaded. Devhelp has search capability. But I needed

Re: Compiling gtk apps on MingW

2005-07-03 Thread David Necas (Yeti)
On Sun, Jul 03, 2005 at 09:37:49AM +0200, Gus Koppel wrote: Makefiles are not supposed to contain (or evaluate, rather) `-expressions. Why not? Backquotes work with most shells and thus you don't depend on GNU make. Anyway, make never evaluates ``-expressions, see below. I have a Makefile

Re: Treeview columns used only for sorting

2005-06-26 Thread David Necas (Yeti)
On Sat, Jun 25, 2005 at 11:17:57PM +0300, Razvan Gavril wrote: I'm kind of new to gtk programming and have a question about how to do a tree view sorting. I have a treeview that displays a list of files. In that treeview i have 2 columns: one that display the date when the file was last

Re: how to prevent multiple instances of the same window.

2005-06-20 Thread David Necas (Yeti)
On Sun, Jun 19, 2005 at 10:00:38AM -0700, mohan kumar wrote: I have developed a gtk application having several dialog windows. One of the dialogs is the About dialog. Whenever i click the about menu item, a new instance of the about dialog pops up. Is there a easy gtk api, which restricts the

Re: GtkButton set pressed

2005-06-16 Thread David Necas (Yeti)
On Thu, Jun 16, 2005 at 02:14:57PM +0100, y g wrote: I was looking the API documentation of the GtkButton (http://developer.gnome.org/doc/API/2.0/gtk/GtkButton.html) and I cannot find a function to set the button pressed or released like gtk_toggle_button_set_mode() of a toggle button.

Re: casting macros question

2005-06-14 Thread David Necas (Yeti)
On Tue, Jun 14, 2005 at 10:24:27PM +0300, Aleksandr Koltsoff wrote: This might sound like a stupid question to some one, but a simple yes/no answer will do :-) Should the following code be caught at compile-time (rather than run-time): gtk_layout_set_adjustment(layout,

  1   2   >