Re: glade_xml_signal_autoconnect and user_data

2008-06-07 Thread Micah Carrick
gtk_builder_connect_signals(). - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com dhk wrote: Is glade_xml_signal_autoconnect()only used for callbacks that don't take user_data? If not, how can user_data be passed to a callback when using glade_xml_signal_autoco

Re: How do I catch right-click on a TreeView header?

2008-05-29 Thread Micah Carrick
You may be able to use gtk_tree_view_column_get_widget() since *I think* it's a GtkLabel (if not, you can make it so using set_widget()) and then connect to the button-press-event of that widget. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforum

Re: Scrolling text in Gtk

2008-05-28 Thread Micah Carrick
In the book "Foundations of GTK+ Development", there is a chapter on creating custom widgets in which a marquee widget is created (which scrolls text across the widget). You could take a look at the source code from the book available at www.gtkbook.com - Micah Carrick Develo

Using GtkTreeViewDropPosition in drag and drop

2008-05-28 Thread Micah Carrick
" signal handler gets the path okay, but does not set the GtkTreeViewDropPosition. Thus, the row is not always dropped into the position that was indicated by the motion event. Can anybody tell me why the GtkTreeViewDropPosition wouldn't be obtainable in the "drag-data-recieve

Re: GtkBuilder and popup menus

2008-05-27 Thread Micah Carrick
I've moved this to the glade-users list since this popup is coming from a glade file and being run through gtk-builder-convert. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Micah Carrick wrote: > How do I use a in a UI f

GtkBuilder and popup menus

2008-05-26 Thread Micah Carrick
How do I use a in a UI file with GtkBuilder? I can't set "id" on the popup... do I have to get the GtkUIManager and get the popup menu widget from that? -- - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://ww

Re: Drag and Drop Selection Content

2008-05-25 Thread Micah Carrick
a, but do NOT call g_array_free as that is already going to be freed after the drag-drop is completed. Sound right? - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Micah Carrick wrote: > Let me be more clear... > > In my callback f

Re: Drag and Drop Selection Content

2008-05-25 Thread Micah Carrick
ata preserved) and then free the data later in the "drag-data-recieved" callback? Do I free the data at all? - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Micah Carrick wrote: > In my handler for "drag-data-get" I

Drag and Drop Selection Content

2008-05-25 Thread Micah Carrick
g-data-recieved" ? -- - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Mixing of memory allocation methods with application

2008-05-25 Thread Micah Carrick
free (playlist->name); playlist->name = strdup (new_name); Also, these structures have arrays of tracks (uint32_t*). I have some routines which replace that array with the 'data' member of a GArray... that's probably *bad* since GArray doesn't use regular malloc(

Re: Scrolling to end of scrolled window when first displayed

2008-05-14 Thread Micah Carrick
een shown, do while (gtk_events_pending()) gtk_main_iteration (); before trying to scroll to the end. Or perhaps try connecting to the text view's "show" or "realized" signals. Not sure if that would work but it's an idea anyway. - Micah Carrick Developer - http://www.micahca

Re: GtkTextView: how to stop default "paste-clipboard" handler ?

2008-05-13 Thread Micah Carrick
You may have to instead catch the Ctrl+V keybinding from within a handler for "key-press-event" and return TRUE to prevent further processing. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Miroslav Rajcic wrote: > I've

Best way to capture scrolling

2008-05-11 Thread Micah Carrick
What's the best signal for capturing when a GtkTextView is scrolled. I don't need to know how much or anything... just that it was scrolled either vertically OR horizontally by the mouse OR keyboard. -- - Micah Carrick Developer - http://www.micahcarrick.com GTK+ For

Re: IP address entry widget

2008-01-06 Thread Micah Carrick
Andrew Krause's book "Foundations of GTK+ Development" uses an IP widget derived from an Entry as an example of writing custom widgets. Check it out at www.gtkbook.com - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Bin C

Re: GtkTreeView row selection change events

2007-12-30 Thread Micah Carrick
I believe it's "row-activated" when a user double-clicks and "cursor-changed" when the selected row has changed. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Christopher Harvey wrote: > Hello GTKers, > Wh

Re: how to replace a child of a GtkBox ?

2007-12-30 Thread Micah Carrick
= gtk_notebook_get_tab_label (GTK_NOTEBOOK (notebook)); image = GTK_WIDGET (g_list_first(box->children)->data); gtk_image_set_from_file (GTK_IMAGE (image), "new-image.png"); - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Greg

Calling gtk-builder-convert from makefile

2007-12-20 Thread Micah Carrick
I have a glade file which I have to convert using gtk-builder-convert first. This converts it from .glade to .xml and the make file installs it. How would I run gtk-builder-convert on the source .glade file prior to copying the .xml file? -- - Micah Carrick Developer - http

Toolbars in Monodevelop

2007-12-11 Thread Micah Carrick
Does anybody know if the toolbars used by the application monodevelop are a library that might be available for C programmers like GDL is? -- - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com ___ gtk

Re: Developer COBOL + GTK

2007-12-07 Thread Micah Carrick
I don't know of COBOL for GTK. You can see a list of GTK+ programming language bindings at http://www.gtk.org/bindings.html - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Ronaldo Ottoni wrote: > Hi, I am a developer of the COBOL

Re: Nested Tree View

2007-11-30 Thread Micah Carrick
renderer, "text", FILE_NAME, NULL); gtk_tree_view_append_column( GTK_TREE_VIEW (panel->priv->tree_view), col); - Micah Carrick Developer - http://www.m

Re: Application with plugins

2007-11-28 Thread Micah Carrick
You may want to take a look at how Gedit created a GObject-based plugin system. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Adam Kłobukowski wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm going do devel

Re: Changing a style property?

2007-11-27 Thread Micah Carrick
to the theme. If we want a specific look (such as a touchscreen application) then we just write our own theme or resource file. Read more at http://library.gnome.org/devel/gtk/2.12/gtk-Resource-Files.html#GtkRcStyle - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http

Re: Feedback on my Win32 GTK+ Experience

2007-11-25 Thread Micah Carrick
Thank you for your response. It is very helpful. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Tor Lillqvist wrote: >> 1. libxml-2.0 from libxml2-2.6.30.win32.zip was missing the .pc file for >> pkg-config. >> &

Feedback on my Win32 GTK+ Experience

2007-11-24 Thread Micah Carrick
32 quesions on http://www.gtkforums.com -- - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Problem compiling on Windows

2007-11-23 Thread Micah Carrick
Argh. Duh. Cool, thanks. It's all working now. Thanks guys. - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Tor Lillqvist wrote: >> Try gcc -Wall -g `pkg-config --cflags --libs libglade-2.0` -o hello hello.c >> > >

Re: Problem compiling on Windows

2007-11-23 Thread Micah Carrick
Shoot, sorry. I meant gcc -Wall -g `pkg-config --cflags --libs gtk+-2.0 libglade-2.0` -o hello hello.c - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Tristan Van Berkom wrote: > On Nov 24, 2007 2:09 AM, Micah Carrick <[EMAIL PRO

Problem compiling on Windows

2007-11-23 Thread Micah Carrick
/lib/glib-2.0/include -Ic:/MinGW/include/libglade-2.0 -Ic:/MinGW/include/libxml2 -Ic:/MinGW/include -Lc:/MinGW/lib -lglade-2.0 -lgtk-win32-2.0 -lxml2 -lz -lws2_32 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib

Re: How to inserts a widget in the toolbar at the given position

2007-11-16 Thread Micah Carrick
child widget to the tool item." - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com sphurti durgade wrote: > hello, > how to inserts a widget in the toolbar at the given position. > because gtk_toolbar_insert_widget is deprecate

Re: Howto embed a window into a gtk application?

2007-10-05 Thread Micah Carrick
You can use the VTE terminal to embed a terminal into your GTK+ application: http://developer.gnome.org/arch/gnome/widgets/vte.html - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://www.gtkforums.com Frank Müller wrote: > Hi. > > I'd li

GnomeVFS, gvfs, and FUSE

2007-10-03 Thread Micah Carrick
I have been reading that GnomeVFS should be avoided in the future. I have a GNOME application which works on text files opened locally or remotely via FTP and SSH using GnomeVFS. Should I move towards other options, such as FUSE? Is GVFS going to be the "next" GnomeVFS? -- - Mic

Re: Problem to open a new window using libglade

2007-03-02 Thread Micah Carrick
Sorry, just use gtk_widget_show() - Micah Carrick Developer | http://www.micahcarrick.com | http://www.gtkforums.com patrick wrote: > If I compile it with "gtk_window_show_now" I get the following compiler error: > implicit declaration of function 'gtk_window_show_now&#x

Re: Problem to open a new window using libglade

2007-03-01 Thread Micah Carrick
A quick "cheap trick" you could do is: gtk_window_set_keep_above (GTK_WINDOW(window2), TRUE); gtk_window_show_now (GTK_WINDOW(window2)); - Micah Carrick Developer | http://www.micahcarrick.com | http://www.gtkforums.com patrick wrote: > Hi All, > > I'd like to o

Re: question about tabs on notebook

2007-02-25 Thread Micah Carrick
index. If you mean that you want the 2nd page to be where the 1st page currently is, why not just change the glade file? - Micah Carrick Developer http://www.micahcarrick.com | http://www.gtkforums.com shawn bright wrote: > Hello there all, > > i am using GTK and glade to create a

gtk_print_operation_run warnings

2007-01-23 Thread Micah Carrick
(operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, GTK_WINDOW (w->window), &error); -- - Micah Carrick Developer - http://www.micahcarrick.com | http://www.gtkforums.com ___ gtk-app-devel-list mailing list g

Re: move cursor with keyboard in a window

2007-01-13 Thread Micah Carrick
[EMAIL PROTECTED] wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, Jan 12, 2007 at 10:52:41AM -0800, Micah Carrick wrote: > >> [EMAIL PROTECTED] wrote: >> > [...] > > >> Here is example code using C/GTK+ (and GDK): >&

Re: move cursor with keyboard in a window

2007-01-12 Thread Micah Carrick
lman/listinfo/gtk-app-devel-list > > Here is example code using C/GTK+ (and GDK): http://www.gtkforums.com/viewtopic.php?p=462 -- - Micah Carrick Freelance Developer http://www.micahcarrick.com | http://www.gtkforums.com ___ gtk-app-devel-li

Re: Button -> Launch context menu? ^^

2007-01-11 Thread Micah Carrick
-faq/x670.html The gtk_menu_popup() function in the GTK+ API Docs: http://developer.gimp.org/api/2.0/gtk/GtkMenu.html#gtk-menu-popup Cheers, -- - Micah Carrick Freelance Developer http://www.micahcarrick.com | http://www.gtkforums.com ___ gtk-

Re: Question about GtkComboBox entry....

2007-01-11 Thread Micah Carrick
m being further propogated. I created a little demo app for which the source can be seen here: http://www.gtkforums.com/viewtopic.php?p=457 -- - Micah Carrick Freelance Developer http://www.micahcarrick.com | http://www.gtkforums.com ___ gtk-app-deve

Re: GtkPlot

2007-01-08 Thread Micah Carrick
Luka Napotnik wrote: > Where can I get a decent example of GtkPlot usage? > > greets, > Luka > > Download the source from http://gtkextra.sourceforge.net/src/gtkplot-5.0.tar.gz, build the source using 'make' and then run ./demo (and view demo.c for how it&#

Re: Anyone know how to use a larger font for an entire application using Glade?

2007-01-05 Thread Micah Carrick
blind they get progressively larger). Font sizes are specified in 'System' -> 'Preferences' -> 'Fonts' under GNOME in FC6. If you really want to specify your own font, you may want to use an rc file: http://developer.gnome.org/doc/API/2.2/gtk/gtk

Re: GtkEntry text selection

2007-01-03 Thread Micah Carrick
You can use the "focus" signal to set the cursor position using gtk_editable_set_position with a position of -1 to indicate the end of the text. - Micah Carrick http://www.micahcarrick.com | http://www.gtkforums.com Anurag Chaudhary wrote: > When I bring focus to a GtkEntr

Re: Trimming GtkEntry Text

2006-12-21 Thread Micah Carrick
tem). If you're looking for the length of characters in the string, try using g_utf8_strlen() instead. - Micah Carrick www.micahcarrick.com www.gtkforums.com Tony Freeman wrote: > Hello, > > I have two problems I'm trying to work through that maybe someone here > can help