struct _data {
type data1;
type data2;
} data;
on_activate_test(GtkmenuItem *menuitem, gpointer data);
nguyen phong 写道:
> Hi alll,
>
> How can I pass 2 parameters to the callback function of a menu item?
> For example:
> In callback function:
> void on_activate_test(GtkMenuItem *menuitem,
> gp
ROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
hello Arren
Thanks for replying but i havent connectted the signal twice i
just write once in the interface.c file as shown below
g_signal_connect (G_OBJECT(GTK_COMBO(seccmb)->entry),"changed",
G_CALL
Maybe you signal_connected this function twice.
poonam chokshi wrote:
hello,
I am calling this function on the changed signal emitted from the textentry
of the comboboxThe problem is that whenever i select the text from the
combobox then this changed signal is emitted twicegiving me the o
César Leonardo Blum Silveira wrote:
Hello all,
How can I Make my app start with it's top left corner right where the
mouse pointer is pointing at?
root = gdk_screen_get_root_window(gdk_screen_get_default());
gdk_window_get_pointer(root, &x, &y, &modif);
Thanks,
César
GtkWidget *
image_new_from_file_at_size (const char *filename, gint width, gint height)
{
GtkWidget *image = NULL;
GdkPixbuf *pixbuf;
GError *error;
const gchar *st = "icon_size";
g_return_val_if_fail (filename != NULL, NULL);
error = NULL;
pixbuf =
Deekshit Mantampady wrote:
How about
gtk_button_new_with_label("Test");
or
gtk_container_add(GTK_CONTAINER(button), my_gtk_label)
I prefer gtk_button_new_with_label. It's simple.
Thanks
Deekshit
On Apr 5, 2005 12:13 PM, dimitri PIEL <[EMAIL PROTECTED]> wrote:
Hi
Could you tell me how to inse
dimitri PIEL wrote:
Hi
Could you tell me how to insert a child like a GtkLabel inside a GtkButton ?
gtk_container_add ();
Should I use the image property of the GtkButton ?
You can also add a GtkImage on GtkButton.
Thanks
Dimitri
___
gtk-app-devel-li
dnk wrote:
how i can grub focus to my program.
i what to write a small xlocker.
How about gtk_widget_grab()
or grub XEvent directly.
#include
#include
#include
gboolean delete_event(GtkWidget* widget, GdkEvent* event, gpointer data)
{
fprintf(stderr,"delete event\n");
return TRUE;
}
gbo