~mitya57/indicator-applet/ftbfs-allow-deprecations

« back to all changes in this revision

Viewing changes to src/applet-main.c

  • Committer: Charles Kerr
  • Date: 2012-04-04 19:11:19 UTC
  • mfrom: (398.1.1 indicator-applet)
  • Revision ID: charles.kerr@canonical.com-20120404191119-7zaqjwh4jvg4jyyy
Merge lp:~jconti/indicator-applet/fix_scroll_event to adds GDK_SCROLL_MASK to the indicator menu items when they're created.

By doing this, scroll-event signals are received on the widgets and scrolling in indicators such as indicator-sound to change the volume will work again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
374
374
  GtkWidget * box = (packdirection == GTK_PACK_DIRECTION_LTR) ?
375
375
      gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3) : gtk_box_new(GTK_ORIENTATION_VERTICAL, 3);
376
376
 
 
377
  gtk_widget_add_events(GTK_WIDGET(menuitem), GDK_SCROLL_MASK);
 
378
 
377
379
  g_object_set_data (G_OBJECT (menuitem), MENU_DATA_BOX, box);
378
380
  g_object_set_data(G_OBJECT(menuitem), MENU_DATA_INDICATOR_ENTRY,  entry);
379
381
  g_object_set_data(G_OBJECT(menuitem), MENU_DATA_INDICATOR_OBJECT, io);