popup and popdown signal of GtkScaleButton



Hi all,

I have tried to use the signals popup and popdown of the
GtkScaleButton but they aren't triggered.

Simple example:

#include <gtk/gtk.h>

void popup(GtkScaleButton *button, gpointer user_data)
{
    g_print("\npopup");
}

int main(int argc, char *argv[])
{
    GtkWidget *window, *scaleButton;
    gtk_init(&argc, &argv);
    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    scaleButton = gtk_scale_button_new(GTK_ICON_SIZE_LARGE_TOOLBAR, 0,
1, 0.1, NULL);
    g_signal_connect(G_OBJECT(scaleButton), "popup", G_CALLBACK(popup), NULL);
    gtk_container_add(GTK_CONTAINER(window), scaleButton);
    gtk_widget_show_all(window);
    gtk_main();
    return 0;
}

-- 
Thanks,
Frederico Schardong,
SOLIS - Open source solutions
www.solis.coop.br
Linux registered user #500582


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]