/[sido]/callbacks.c
ViewVC logotype

Diff of /callbacks.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 19 by ben, Sat Oct 17 00:31:21 2009 UTC revision 21 by ben, Thu Apr 29 13:50:38 2010 UTC
# Line 56  void volume_on_change (GtkWidget* instan Line 56  void volume_on_change (GtkWidget* instan
56  }  }
57    
58  /* handler for volume slider leaving  (close) */  /* handler for volume slider leaving  (close) */
59  gboolean volume_on_leave (GtkWidget* instance, GdkEventCrossing* event, gpointer app_data)  gboolean volume_on_leave (GtkWidget* instance, GdkEventFocus* event, gpointer app_data)
60  {  {
61          AppData* d = (AppData*) app_data;          AppData* d = (AppData*) app_data;
62    
# Line 85  void status_icon_on_left_click(GtkStatus Line 85  void status_icon_on_left_click(GtkStatus
85          gtk_range_set_value(GTK_RANGE(d->volume), curvol);          gtk_range_set_value(GTK_RANGE(d->volume), curvol);
86          gtk_container_add (GTK_CONTAINER(d->vol_window), d->volume);          gtk_container_add (GTK_CONTAINER(d->vol_window), d->volume);
87          g_signal_connect(G_OBJECT(d->volume), "value-changed", G_CALLBACK(volume_on_change), app_data);          g_signal_connect(G_OBJECT(d->volume), "value-changed", G_CALLBACK(volume_on_change), app_data);
88          g_signal_connect(G_OBJECT(d->volume), "leave-notify-event", G_CALLBACK(volume_on_leave), app_data);          g_signal_connect(G_OBJECT(d->volume), "focus-out-event", G_CALLBACK(volume_on_leave), app_data);
89          gtk_widget_show_all(d->vol_window);          gtk_widget_show_all(d->vol_window);
90          instance = NULL;          instance = NULL;
91  }  }

Legend:
Removed from v.19  
changed lines
  Added in v.21

  ViewVC Help
Powered by ViewVC 1.1.26