Clicked event on GtkButton
- From: Mahesh Chaudhari <mahesh chaudhari ymail com>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Clicked event on GtkButton
- Date: Fri, 11 Oct 2013 15:58:30 +0800 (SGT)
Does it make any difference, generating "clicked" event using mouse click OR gtk_button_clicked() call
My clicked event callback rightly changes background colour when clicked using mouse however change does not
reflect when the event is generated using gtk_button_clicked() with following code :
Gtkwidget *button1;
void click_button1(GtkWidget *widget, gpointer data)
{
GdkColor color;
color.red = 27000;
color.green = 30325;
color.blue = 34181;
gtk_widget_modify_bg(button1, GTK_STATE_NORMAL, &color);
gtk_widget_show_now(GTK_BUTTON(button1));
}
Any Clue ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]