Load two diffrent font in a page

2002-10-10 Thread amitjain
Hi AllI am using Gtk1.2.I want to make  2 label which is mention below._|   ||  Label1   ||  Lang 1   || ||  ||  Label2    ||  Lang 2    || |   In these labels i want to load 2 diffrent fonts of diffrent language.But whenever i am loading

Re: Load two diffrent font in a page

2002-10-10 Thread amitjain
Hi All I got solution . Thanks All Amit Jain - Original Message - From: amitjain To: [EMAIL PROTECTED] Sent: Thursday, October 10, 2002 5:33 PM Subject: Load two diffrent font in a page Hi AllI am using Gtk1.2.I want to make  2 label which is mention

Gtk 1.2 gtk_menu_get_title ()

2002-10-22 Thread amitjain
Hi All I am using Gtk 1.2. I want to get title of Gtk Menu so is there any function for getting it. we know about gtk_menu_set_title () , but couldn't find like gtk_menu_get_title (); so if anybody knows how to change GtkMenu title please let me know. Thanks in Advance Amit Jain _

Change Font of GtkClist title

2002-10-22 Thread amitjain
Hi !!! I am using Gtk1.2. I wnat to set font for GtkClist title. I am doint it in this way. style = gtk_widget_get_style( clist ) ; style->font = font_load; gtk_widget_set_style( clist, style ) ; But it is not reflecting chang on GtkClist title. Please help me. Thanks in Advance Amit Jain __

Re: Change Font of GtkClist title

2002-10-22 Thread amitjain
d), style ) ; gtk_clist_set_column_widget(GTK_CLIST(clist),0,title); Thanks Amit Jain - Original Message - From: "amitjain" <[EMAIL PROTECTED]> To: "Olexiy Avramchenko" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 11:38 AM Subject:

Very simple question

2002-10-24 Thread amitjain
thing exceopt me :) Thanks in advance Amit Jain - Original Message - From: "amitjain" <[EMAIL PROTECTED]> To: "amitjain" <[EMAIL PROTECTED]>; "Olexiy Avramchenko" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 20

Re: Problems finding items in a GList

2002-10-28 Thread amitjain
firstly i should summarize your question you have a GList of GtkLabel and now you want to change the labels .right? so try something like this. GList *glist,*widget_list; GtkWidget *widget; widget_list=g_list_first (Glist); widget=widget_list->data; now in widget you got your label and do anyt

get GtkWindow Position?

2002-10-28 Thread amitjain
Hi All!!! I am using Gtk1.2. I want to get the position of GtkWindow, so how it is possible ? if anybody knows then please let me know Thanks in adavace. Amit Jain. - Original Message - From: "Olexiy Avramchenko" <[EMAIL PROTECTED]> To: "amitjain" <[

Remove GdkPixmap from a container

2002-10-30 Thread amitjain
Hi All!!! i am using Gtk1.2. I have a container in that i added some widgets and some pixmaps. I added these pixmap in a vbox and then that i added that vbox in my main container. now i want to remove vbox on some events, and pixmap should be disappear from screen. i come to know about gtk_widget

Deactivate GtkMenuItem

2002-10-30 Thread amitjain
Hi All!!! i am using Gtk1.2. i want to deactivate a menuitem on some particular event . i come to know about to deactivate gtkmenushell but how can i do this for gtkmenuitem. so can anybody help me.it would be appreciable. Thanks in advance Amit Jain _

DataBase connectivity

2002-11-07 Thread amitjain
Hi All!!! I am using Gtk 1.2. i want to conncet a gtk application with a database,it could be oracle or mysql or anythng else.so is there any provision in gtk to run query or i should use some one else API for connection and retrievel of data.if you know any other library please let me know. T

Re: Can anybody give me an example of scrolling of GtkTextView?

2002-11-14 Thread amitjain
Example Attached - Original Message - From: "mili" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 8:04 PM Subject: Can anybody give me an example of scrolling of GtkTextView? Hi, anybody Can you give me an example of scrolling a GtkTextView to the en

Re: Get Label of GtkListItem

2002-11-15 Thread amitjain
GtkWidget amazing;(GtkListItem type) gtk_label_get(GTK_LABEL(GTK_BIN(amazing)->child), &label ); Bye Amit Jain - Original Message - From: "Ruben Porras" <[EMAIL PROTECTED]> To: "lista gtk+" <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 7:09 PM Subject: Get Label of GtkListItem > H

Re: Number of rows in a CList

2002-11-15 Thread amitjain
GTK_CLIST(clist)->rows has the number you are looking for. Stupid Answer :) Bye Amit Jain - Original Message - From: "Biswapesh Chattopadhyay" <[EMAIL PROTECTED]> To: "GTK List" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 6:51 PM Subject: Number of rows in a CList > Stupid qu

Re: gtkdrawingarea mouse signals

2002-11-16 Thread amitjain
you should go through with this document. gtk1.2 http://developer.gnome.org/doc/API/gtk/gtkdrawingarea.html gtk2.0 http://developer.gnome.org/doc/API/2.0/gtk/GtkDrawingArea.html - Original Message - From: "suzan Allen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 16,

Re: GDK ERROR

2002-11-18 Thread amitjain
Hi !!! I guess these links can solve your problem. Best Of luck http://mail.gnome.org/archives/gtk-perl-list/2001-November/msg00080.html http://mail.gnome.org/archives/gtk-list/2000-December/msg00177.html http://mail.gnome.org/archives/gtk-list/2000-December/msg00180.html http://mail.gnome.org/arc

Re: Why this comportment ? (more precise)

2002-11-20 Thread amitjain
you can use : gtk_signal_connect_object (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (user_func), GTK_OBJECT(window)); user_func() { gtk_main_quit(); } Bye Amit Jain - Original Message - From: "lomba" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 5:03 P

Re: multi parameters in a callback

2002-11-20 Thread amitjain
main() { GtkWidget *wid; gtk_signal_connect(, GTK_SIGNAL_FUNC(write), wid); } write(Gtkwidget *callwidget,gpointer *wid) { GtkWidget *wid1; wid1 GTK_WIDGET(wid); // now enjoy } Bye Amit Jain - Original Message - From: "lomba" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesda

Re: Rotated text

2002-11-21 Thread amitjain
I guess to render rotated text is not a matter of gtk . you can do it easily.it's a matter of logic. isn't it ? - Original Message - From: "Ian King [ES]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 4:24 AM Subject: Rotated text > Hi, > > Is is possible t

Re: enquiry about labels

2002-11-24 Thread amitjain
You should use gtk_label_get(GTK_LABEL(GTK_BIN(button)->child), &label ); gtk_label_set(GTK_LABEL(GTK_BIN(button)->child), label ); Since GtkLabel contains GtkLabel as a child so you have to use this above line. Bye Amit Jain - Original Message - From: "Pierre CHATEL" <[EMAIL PROTECTED

Re: enquiry about labels

2002-11-24 Thread amitjain
- Original Message ----- From: "amitjain" <[EMAIL PROTECTED]> To: "Pierre CHATEL" <[EMAIL PROTECTED]>; "GTK" <[EMAIL PROTECTED]> Sent: Monday, November 25, 2002 9:57 AM Subject: Re: enquiry about labels > You should use > gtk_label_get(GTK_LABEL(GTK_

Re: entry problem

2002-12-01 Thread amitjain
You should Use. *** function to get string*** static gchar *entry_text;(global to file) void get_the_text (GtkWidget *widget, GtkWidget *entry) { entry_text = gtk_entry_get_text(GTK_ENTRY(entry)); printf("Entry contents: %s\n", entry_text); } main char *v; entry1 = gtk_entry_new_with_

Re: how to get a vector from a function?(please help)

2002-12-01 Thread amitjain
You should use *** function*** char *gchtxt (GtkWidget *entry, char *tmp){ tmp = gtk_editable_get_chars (GTK_EDITABLE(entry), 0, -1); /*tmp=(char*)malloc(strlen(tmp)*sizeof(char));*/ printf ("This is my text %s\n", tmp); return (tmp); *main