List with icons

2005-05-20 Thread Oujin
Hi I want to create a list widget which switches from ICON list to TEXT list and viceversa(like file browser). Any sample code will be very helpful cheers! thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/m

Re: gtk_text_entry

2005-05-20 Thread Alan M. Evans
On Fri, 2005-05-20 at 10:30, Alan M. Evans wrote: > gboolean onEnter(GtkWidget *widget, gpointer *data) { > /* called when user presses Enter */ > const gchar *s = gtk_entry_get_text(data->entry); > /* Do something with the text here, >then to clear the entry do... */ > gtk

Re: gtk_text_entry

2005-05-20 Thread Alan M. Evans
On Thu, 2005-05-19 at 23:17, srinivas wrote: > thanks for reply to my queries, still i am facing the same problem, > i can't get the text entered in to the gtk_text_entry widget. how can i > get the text entered in to the text_entry widget. is any event signal i > have to give to text_entry widge

Re: g_str_is_ascii()

2005-05-20 Thread Brian J. Tarricone
David Necas (Yeti) wrote: >On Thu, May 19, 2005 at 06:18:44PM -0400, Claudio Saavedra wrote: > > >>I need to write a function to reject strings that are utf-8, i.e. accept >>only convencional ascii strings. >> >>I was wondering if there is any other way more nice than making a >> >>gboolean >>s

size-allocate ginal and layout resizing.

2005-05-20 Thread Barath K. Seshadri
Hi, I have a gtklabel and am using g_signal_connect hadnler to the size-allocate signal to modify the size of the layout based on the text font size. So if the text is too tall to fit, based on the text height being greater than the layout's height I reduce the font size by 1 pt till it

Re: GLib-GObject-CRITICAL debugging

2005-05-20 Thread Jan-Marek Glogowski
Hi Daniel If I want to catch GLib/GTK+ errors I set a breakpoint to g_log. In gdb: break g_log If you use g_log for a lot of own logging, you should be able to set a breakpoint depending on the logging domain. HTH Jan-Marek ___ gtk-app-devel-list mai

Re: Added my files to src/Makefile.am but

2005-05-20 Thread Gyözö Both
if it's a glade project you should call './autogen.sh' in the build directory after each change of the Makefile.ams to generate the Makefile.ins and the Makefiles. i'm not sure how to do things if it's not a glade project. cheers, gyözö it didn't work: ## Process this file with automake to pro

Re: lock focus

2005-05-20 Thread Muthiah Annamalai
I think youre talking about a modal dialog box. You must set the GTK_DIALOG_MODAL flag on. Thats it, while creating a dialog box, with the dialog_new_with_buttons() pass this flag also. Must work. #include void my_exit_cb(GtkWidget *w) { GtkWidget *m; gtk_window_set_title(GTK_WINDOW(

GTK, Pango Fonts

2005-05-20 Thread Brian Hanley
Hi all, I am trying to figure out how to make proper use of fonts with GTK, and am not find a whole lot of answers out there. Here are some of my questions: 1. Is there a Pango FAQ, or GTK fonts FAQ? Specifically, is there a document describing how Pango is built on top of, and works with,

lock focus

2005-05-20 Thread y g
hi, i have a confirmation dialog that needs to stay on focus and on top with all the other windows "deactivated". Browsed the documentation of the api reference for widget and window but none of the functions rings a bell... as the interface is created with glade there is no parent window to the d

Re: Added my files to src/Makefile.am but

2005-05-20 Thread Colossus
Colossus wrote: Could someone help please ? Sorry, I forgot to do this: ## Process this file with automake to produce Makefile.in -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-

Added my files to src/Makefile.am but

2005-05-20 Thread Colossus
it didn't work: ## Process this file with automake to produce Makefile.in INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ bin_PROGRAMS = xarchiver xarchiver_SOURCES = \ main.c main.h \

pixbuf manipulation

2005-05-20 Thread Raghavendra
Thanks Mr.Muthiah. but as i am very new to pixbuf manipulation can u provide me the simplified code of a loading a image and displaying it. btw ur color programs were nice Also can we include transparent images into pixbufs? Thank You On 5/19/05, Muthiah Annamalai <[EMAIL PROTECTED]> wrote:

RE: How to shape a button

2005-05-20 Thread Muthiah Annamalai
Hi! It seems to work for me... I just forgot to mention, just create & connect a button to its configure_event. > > > #include > #include > #include > > > gboolean configure_event(GtkWidget *w,gpointer > data) > { > //make a shaped mask > GdkPixmap *pix; > GdkBitmap *bit; > GdkCo

Re: file selection

2005-05-20 Thread Muthiah Annamalai
Hi File selection code must be written like this: filew = gtk_file_selection_new ("Folder Selection"); gtk_file_selection_set_filename (GTK_FILE_SELECTION (filew), "*.png"); gtk_widget_show(filew); switch(gtk_dialog_run(filew)) { case GTK_RESPONSE_OK: gtk_file_selection_get_filename