Setting Background image for window
Hai How can i set background image for a window. In this how to place other widget on this image. If any one know the idea please tell to me With regards Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Pointers Problem
hai all char **argv; char *line1="Good Morning"; char *line2="Good Evening"; how to copy line1 to the first index of argv and line2 to the second. ie argv[0], argv[1]; and how to retrive this line1 and line2 This is a small problem in the case of experts. So i request that dont avoid it. Please send the replay Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
(no subject)
Hai How to create Makefile.am , Makefile and Makefile.in for a group of source programs in c Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Create Makefile
Hai How to create Makefile.am , Makefile and Makefile.in for a group of source programs in c Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
button on image
Hai, I want to place an image on a window as a full as background image. And also i want to place a button or other widget on that image.Please send an example code or link if any one tracking this situation. Thanks in advance Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
jpg to xpm dynamically
Hai all Any or group of code that dinamically create xpm from hpg or png. If any one u find please inform me. Ie we give gtkImage as input and we get pixmap as output. With regards Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Change font's size
Hai U can specify the size of font in the fints name itself. ie give font name like this "-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1" here 12 is the size. u will get more help from http://developer.gnome.org/doc/API/2.2/gdk/gdk-Fonts.html#gdk-font-load -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
help me!
Hai all I add an image on a window. This window is appeared by a parent window after clicking a button. The code is follows, GdkPixmap *pixmap=NULL; GdkBitmap *mask=NULL; window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (window1), 0); gtk_widget_show (window1); pixmap=gdk_pixmap_create_from_xpm (window1->window,&mask, NULL,"About.xpm"); window1->style->bg_pixmap[0] = pixmap; while i run it The pixmap shows successfuly but the part of the pixmap is also appeared in button background(ie the image part is shown on the button and also the buttton label),in scrollbar navigation button and other child windows botton. This effect is still in it after close the pixmap window. Is any solution to avoid this. ie after closing the image is completely disappeared from all windows. For this what can i do?. Thanks in advance Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
help me!
Havoc Pennington, I see ur mail id in mailing list. I want a small help in gtk. The problem is i cand draw that image with the following code #include void close_application( GtkWidget *widget, GdkEvent *event, gpointer data ) { gtk_main_quit(); } int main (int argc, char *argv[]) { GtkWidget *window; GdkPixbuf *pixbuf; //GdkColormap *colormap; gtk_init (&argc, &argv); //colormap = gdk_colormap_get_system(); window = gtk_window_new( GTK_WINDOW_TOPLEVEL); //gdk_drawable_set_colormap(window->window, colormap); gtk_signal_connect (GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC (close_application), NULL); gtk_widget_show (window); pixbuf = gdk_pixbuf_new_from_file((gchar *) "mandir_n.png", NULL); gdk_draw_pixbuf(window->window, NULL, GDK_PIXBUF (pixbuf),0,0,100,100,gdk_pixbuf_get_width (pixbuf),gdk_pixbuf_get_height (pixbuf),GDK_RGB_DITHER_NONE,0,0); gtk_main (); return 0; } what is wrong with here. The prog has no error in compiling. please help me Thanks in advance Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: help me!
Hai all especially behdad, I am very sorry for my mistake. Actually it happend by my mistake. I remember that i dont change the first few lines in the mail only After i click on the send button. Un fortunately i cant stop the mail because it hase already send. So i beg pardon once again to all. I am friendly to all cheers Manoj - Original Message - From: Behdad Esfahbod <[EMAIL PROTECTED]> Date: Thu, 29 Jan 2004 04:50:59 -0500 To: Manoj tr <[EMAIL PROTECTED]> Subject: Re: help me! > On Thu, 29 Jan 2004, Manoj tr wrote: > > > > > Havoc Pennington, > > > > > > I see ur mail id in mailing list. > > > > I want a small help in gtk. > > > What an unfriendly way of asking help. If it's a private mail to > Havoc which you know him etc, then send it to him, but if you are > sending to list and you don't know Havoc, this is not really nice > to write like this. Afterall this guy is busy to death, if > nothing else. > > behdad > > > > > The problem is i cand draw that image with the following code > > > > > > #include > > > > > > what is wrong with here. The prog has no error in compiling. > > > > please help me > > > > Thanks in advance > > > > Manoj > > -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Sorry to all
Hai all especially behdad, All u see my mail help me!. At first I am very sorry for my mistake. Actually it happend by my mistake. I remember that i dont change the first few lines in the mail only After i click on the send button. Un fortunately i cant stop the mail because it hase already send. So i beg pardon once again to all. I am friendly to all cheers Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: my doubt
hi members! i am a student of engineering from india & i am using glade for developing the gui of my project.i have encountered a problem. My problem exactly is :Suppose i have created an application using glade2.In the source files(say, main.c) i create a character array (i.e. a storage space) & then i run the aplication. Now, when i click on a file icon while my application is running, i must get the full path of that file in my pre-allocated storage space.(for eg. if the file is q.c in directory /home/chaits/ , then when my application is running, if i click on the q.c's icon, i must get "/home/chiats/q.c" in the character array i created) i asked this question on the glade mailing list & there i got one reply, saying that this is more a gtk question than a glade one. so i am asking this question on this mailing list. how do i achieve my goal?? anybody knows?? Regards, Chaitanya. h. Hai, Ur doubt is not clear to me. I think u show the icons of some files in a window and after clicking that icon u decided to get the pathe of that file in the system(or a particular dir or ur home directory i dont understand what u mean). In this case i hope that the filename is known and using this file name we search the path. If ur aime is file selection use gtk_file_selection. Otherwise we use the system call and using the system call we search the file informaton using the file name. Send ur exact requirement and after that i will replay correct function. With regards Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Hi child parent problem
- Original Message - From: "Anish Chandran" <[EMAIL PROTECTED]> Date: Mon, 9 Feb 2004 11:04:10 -0600 To: [EMAIL PROTECTED] Subject: Hi child parent problem > Hi . > > Can any tall me how can i set a window the child of another window... ie > the parent window should go to the block state.. > > Thank you i advance... > > Anish > > _ > Free email with personality! Over 200 domains! > http://www.MyOwnEmail.com > Looking for friendships,romance and more? > http://www.MyOwnFriends.com > > ___ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list;; Hai I think u want set a widget to the child of another widget. If u want this u can use the function voidgtk_widget_set_parent (GtkWidget *widget, GtkWidget *parent); With Regards Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: (no subject)
> Hi all, > I am using the GTK+ language for my project , i would > like to use the singal_connect to call the shell > script , and then run it . > Is it work ? > Thank you for your attention!! > thanks a lot!!! > > Best Regards, > aymui > Definitely. u specify a function in g_signal_connect as a callback function and in that function use system() function for running the shell script. With Regards Manoj -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
problem in gtktextview
hai I have a problem with textview. I want to replace the characters in a gtktextview after checking some condition. ie when i press "A" the displayed character will be H. But in the case of textview i enter the all code to rplace the character, but it will print both characters "AH" ie the actual one and the mapped one. I place the code bellow. any replay will very thankful to you. I want to build an editor in regional language. I think some problem in iteration. It will not correctly initialize. With Regards Manoj # #include PangoFontDescription *font_kar; GtkTextView *textview1; GtkTextBuffer *Buf; GtkTextIter IterCur, IterSel, IterEnd; GtkTextMark *MarkCur, *MarkSel; static gboolean delete_event( GtkWidget *widget, GdkEvent *event, gpointer data ) { gtk_main_quit (); return FALSE; } gboolean on_textview1_realize (GtkWidget *widget, GdkEventKey *event, gpointer user_data) { font_kar = pango_font_description_from_string("Sans 16"); textview1=GTK_TEXT_VIEW(widget); gtk_widget_modify_font(GTK_WIDGET(textview1),font_kar); Buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(textview1)) ; gtk_widget_grab_focus(GTK_WIDGET(textview1)); MarkCur = gtk_text_buffer_get_mark ( Buf, "insert" ) ; gtk_text_buffer_get_iter_at_mark ( Buf, &IterCur, MarkCur ) ; } gboolean on_textview1_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer user_data) { int Pos,SelPos; gchar *fchar; Buf = gtk_text_view_get_buffer( GTK_TEXT_VIEW( widget)) ; MarkCur = gtk_text_buffer_get_insert(Buf); gtk_text_buffer_get_iter_at_mark ( Buf, &IterCur,MarkCur ) ; gtk_text_buffer_get_iter_at_offset(Buf,&IterEnd,-1); switch (event->keyval) { case 65: // 'A' gtk_text_buffer_insert( Buf,&IterCur,"H",-1); // gtk_text_buffer_insert( Buf,&IterCur,"m",-1); gtk_text_buffer_get_iter_at_offset(Buf,&IterEnd,gtk_text_iter_get_offset(&IterCur)-1); //gtk_text_buffer_delete(Buf,&IterCur,&IterEnd); break; } return FALSE; } int main( int argc, char *argv[] ) { gtk_init (&argc, &argv); GtkWidget *window1; GtkWidget *scrolledwindow1; GtkWidget *textview1; window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_name (window1, "window1"); gtk_window_set_title (GTK_WINDOW (window1), ("window1")); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow1, "scrolledwindow1"); gtk_widget_show (scrolledwindow1); gtk_container_add (GTK_CONTAINER (window1), scrolledwindow1); textview1 = gtk_text_view_new (); gtk_widget_set_name (textview1, "textview1"); gtk_widget_show (textview1); gtk_container_add (GTK_CONTAINER (scrolledwindow1), textview1); gtk_widget_set_size_request (textview1, 300, 400); g_signal_connect ((gpointer) textview1, "realize", G_CALLBACK (on_textview1_realize), NULL); g_signal_connect ((gpointer) textview1, "key_press_event", G_CALLBACK (on_textview1_key_press_event), NULL); g_signal_connect ((gpointer) window1, "delete_event", G_CALLBACK (delete_event), NULL); /* Rest in gtk_main and wait for the fun to begin! */ gtk_widget_show (window1); gtk_main (); return 0; } -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list