Find Signal Name, in callback handler.

2006-03-19 Thread Muthiah Annamalai
Dear friend, I want to know if its possible to find Signal Name, in callback handler. Im writing language bindings and I need to evaluate some designs on routing callbacks; with a fair amount of searching on archives of this ML, I dont find this question answered well, enough. Q: void handler(GO

Re: Question: Making a Gtk+ application interacts with octave

2005-07-19 Thread Muthiah Annamalai
Hello! You can use this code to show a image, in a persistent way. - #! /usr/bin/octave -q % (C) July 2005, Muthiah Annamalai % % Ensure: % %matrix you pass to gtk_imshow_set() has only % elements with normalized to value [0,1]. % %size of window

Re: Question: Making a Gtk+ application interacts with octave

2005-07-19 Thread Muthiah Annamalai
Hello everyone! & Dear Mr Martinez, I dont know if what youre looking for is, Octave-GTK+, but have a look at this site: http://octave-gtk.sf.net/ and our project. I hope my project is useful for you. For an idea see http://octave-gtk.sourceforge.net/screenshot.html Octave-GTK+ is a set of GTK+

Re: closing a GtkFileChooserDialog (The Saltydog)

2005-07-11 Thread Muthiah Annamalai
> > > >the dialog stays open until my_subroutine returns > and as the sub is a > >very long time-demanding sub, it is annoying to see > the dialog stuck > >opened.. > > Probably you must use, gtk_widget_hide() on the dialog, before you enter your subroutine? Cheers Muthu. ___

Re:Subject: Delete event.

2005-07-03 Thread Muthiah Annamalai
> In my application I am using a widget, say vbox. > When that widget is destroyed, I want to delete all > the associated objects that I allocated. So, I > attached a delete_event and destroy_event callback. > But this callback is not called, when I destroy the > container of the vbox. Im able to

Re:combo box with some preset

2005-06-30 Thread Muthiah Annamalai
--- [EMAIL PROTECTED] Josh! From: "Joshua A. Andler" <[EMAIL PROTECTED]> > Basically I'd want a combo box with some preset values, > but spinbuttons on it to tweak from there. Is this > doable with GTK? I guess anything is doable with a 2D drawing kit is doable in GTK+. Ask GIMP, Inkscape, GNOME

Type Explorer.

2005-06-28 Thread Muthiah Annamalai
Hi! Ive a small program for exploring GObject types, http://octave-gtk.sourceforge.net/Texplore/ May be useful for GTK+ programmers in general. Cheers Muthu. Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football

Re: 5 gui's launched from 1.

2005-06-25 Thread Muthiah Annamalai
Hello! > hi!!! I got ur mail id from gtk-app-devel-list gnome > org. Please keep future posts on the Gtk-App-Devel lists. It will benefit more people, and keep my answers correct and under scrutiny from others. I appreciate your mails on gtk-app-devel-list. Respect this. > I have a doubt in GTK,

Re: C & P event from x

2005-06-14 Thread Muthiah Annamalai
Hello! --- Arx Henrique <[EMAIL PROTECTED]> wrote: > i'm newbie in gtk, and i'm making a simple program Welcome to GTK! Explore documents at 1. Www.gtk.org/ | tutorials | articles | code 2. $ gtk-demo & | A simple & powerful demo of GTK+ 3. http://developer.gnome.org | GTK+ & GNOME programming

Re: Delete a gtktextbuffer to fill it again

2005-06-14 Thread Muthiah Annamalai
Hello Giant{colossus}! --- Colossus <[EMAIL PROTECTED]> wrote: > I use gtk_text_buffer_delete this way: > > if (textbuf != NULL) > { > gtk_text_buffer_get_start_iter (textbuf,&start); > gtk_text_buffer_get_end_iter (textbuf,&end); > gtk_text_buffer_delete (textbuf,&start,&end);

Re: Determining the number of visible lines in a GtkTextView

2005-06-12 Thread Muthiah Annamalai
Hello! --- Eduardo M KALINOWSKI <[EMAIL PROTECTED]> wrote: > Well, besides determining the width of the > GtkTextView in > characters, I also need to determine its height in > lines, or the number > of visible lines. I've tried a solution with font > metrics, but the value Please see GtkSour

Re: GtkTextView restricting

2005-06-12 Thread Muthiah Annamalai
Hi, --- Mateusz Misiorny <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any way to restrict the TextView to only > allow, say 5 lines of text? BTW TextView doesnt create scrollbars, if you set a callback to the "set_scroll_adjustments" signal of the textview, and set these values to null. I thi

Re: GtkCellRendererToggle not responding to clicks?

2005-06-12 Thread Muthiah Annamalai
Hello Alem! --- Alem Dain <[EMAIL PROTECTED]> wrote: > Hi all. It would seem that the little toggle button > in my GtkTreeView > doesn't respond to being clicked on, as in, it > doesn't change state, > and no callback is called... back. Because you didnot set any! > I do > gtk_tree_view_i

Re:Removing widgets from VBox.

2005-06-10 Thread Muthiah Annamalai
g the thread. P.P.s: this post was also missent. --- Muthiah Annamalai <[EMAIL PROTECTED]> wrote: > > --- Guenther Sohler <[EMAIL PROTECTED]> > wrote: > [snip] > > I did not yet find a good strategy to delete all > > widgets/childs from within a > > vbox. &g

Re: Newbie problems with gtk GtkFileSelection

2005-06-10 Thread Muthiah Annamalai
Hello there! --- Robert Ramiega <[EMAIL PROTECTED]> wrote: [snip] > User is supposed to pick either existing file (that > will be either > overwriten or appended to) or enter name of file to I think you better use GtkFileChooser dialog, from gtkfilechooser.h & gtkfilechooserdialog.h. File sele

Re: libglade: glade_xml_get_widget

2005-06-09 Thread Muthiah Annamalai
Hello! > Dnia 09-06-2005, czw o godzinie 16:03 +0100, y g > napisa³: > > I am trying to convert an application code which > was produced with [snip] > > glade_xml_get_widget seemed to be the one but it > does not work in any > > of my callbacks, You got to load the full widget hierarchy using Gl

Re: displaying html data

2005-06-08 Thread Muthiah Annamalai
Hi! look at gtkhtml in cvs.gnome.org. AFAIK no GTK-only widget exists. Cheers Muthu/ --- Mohit Gogia <[EMAIL PROTECTED]> wrote: > hi all, > > i am new to gtk programming and i am starting off > with a simple > applet.what i want to ask if there is any way that i > can be able to > display html t

GTK is OO.

2005-06-08 Thread Muthiah Annamalai
Hello folks! I mean GTK Is OO. Widgets encapsulate other widgets. There is a type system,GObjects and signals floating all over the place. Please try to understand this GTK architecture. [see developer.gnome.org and GObject tutorials,GTK+ tutorials,before asking questions. You can even try to se

Re: Removin all Widgets from a VBox

2005-06-08 Thread Muthiah Annamalai
Hi! I think Ive a solution to what youre asking me. --- Guenther Sohler <[EMAIL PROTECTED]> wrote: [snip] > I did not yet find a good strategy to delete all > widgets/childs from within a > vbox. > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > GtkBox [base of VBox & HBox], has a G

Re: Glade C code a bad thing? (was: root windows)

2005-05-31 Thread Muthiah Annamalai
Hello Everyone! G'day all. I would support the inclusion of Code generation in GLADE UI Editor. It is a welcome feature, for those who would like it. If its not to be in the main tree atleast put the code into a plugin thats enabled at default, and users can turn it off, if they prefer. I request

Sharing Variables in GTK+, & Re: State changing of Toggle Buttons

2005-05-30 Thread Muthiah Annamalai
Hi Michal, This might be the solution, if I understand you right. General information. If you write C code, and want to access lots of variables from a Callback, then there are a few simple ways. 1: Make all the variables global, so you can access them anywhere[function] in C. 2: Make a single g

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(

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

Re: How to shape a button

2005-05-19 Thread Muthiah Annamalai
Hi! Im sending you code from the project gtk-book, http://gtkbook.sourceforge.net/ The function make_shapedwidget() should help. To choose the shape of the widget change the mask in the file "circle.xpm". #include #include #include gboolean configure_event(GtkWidget *w,gpointer data) {

Re: my program has these problems

2005-05-19 Thread Muthiah Annamalai
Hi! Ill try to answer some of your questions... that seem quite simple.. > 2.I still cann't make the g_thread work. I think I > need tips to find which kind of code may made the > thread init fail. After you call gtk_init() call g_thread_init(). That works for me! > 3.Now I set a global variab

Re: g_signal_connect: what are the "detailed_signal" ?

2005-05-19 Thread Muthiah Annamalai
Hi ! You can see this for each widget in its GTK+ source. eg: GtkButton() supports signals like clicked etc, which can be found by looking in its header files, gtkbutton.h or in the source gtkbutton.c. /* GtkButton.h */ struct _GtkButtonClass { GtkBinClassparent_class; void (* pres

Re: how to display pixmap on button.

2005-05-19 Thread Muthiah Annamalai
Hi! There are two ways. Using GLADE 1: Edit the .glade file! or use Glade to edit the UI interface. Programming Wise. 2: Button widget has a child which holds the Label widget. Now you have to create a image, and like a container you add it into the button, like this. This code does your j

Re: gtk text entry

2005-05-19 Thread Muthiah Annamalai
Hi, To Check the entry widget for some text you can use this. const char *ptr= gtk_entry_get_text(text_widget); if (!strlen(ptr)) throw_error_popup(); -Muthu --- srinivas <[EMAIL PROTECTED]> wrote: > hi all; > >i am developing gui with glade and c. now i have > a "text entry" and > "next bu

Re: how to clear the pixmap window

2005-05-19 Thread Muthiah Annamalai
Hi You can use g_object_unref(), to destroy this widget, so that the window refreshes itself, or paint the pixmap with one of the gdk_drawable_* API to fill the pixmap with some color, you call as refreshing. -Muthu --- harshavardhanreddy mandeepala <[EMAIL PROTECTED]> wrote: > hi > i have create

Re: simple example of using gdk_pixbuf_new_from_file

2005-05-18 Thread Muthiah Annamalai
Like Ive been always yapping around my tutorial, see this http://cybernetics.freewebspace.com/gtk/ for some tip on GdkPixbuf. Your problem might be to change this line > gtk_init (&argc, &argv); as > gtk_init (NULL,NULL); Cheers Muthu. --- Raghavendra <[EMAIL PROTECTED]> wrote: > simple ex

Re: Help!!!!!!!

2005-04-12 Thread Muthiah Annamalai
Hello! You could have well done some kind of search on this list before. But Ill suggest something else, read the rest of this mail, it may solve your probs, and donot use GTK+1.2 shift to GTK+2.0 API. 1] System date can be got from calls like asctime(), see man asctime 2] TO get current foc

Re: Glade problem

2005-04-01 Thread Muthiah Annamalai
Hi Vallish! try doing this. $aclocal $autoconf $automake and run $./configure $make && make install instead of the ./autogen.sh Also post the 'errors' youve got on the list [Glade-list] rather. then resume the build process. --- vallish sharma <[EMAIL PROTECTED]> wrote: > I get errors whil