~ubuntu-branches/ubuntu/trusty/gimp/trusty

« back to all changes in this revision

Viewing changes to app/gui/ige-mac-menu.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-19 17:16:47 UTC
  • mfrom: (1.1.27) (0.4.17 sid)
  • Revision ID: package-import@ubuntu.com-20120919171647-5dytjrc7bgb935we
Tags: 2.8.2-1ubuntu1
* Merge from Debian unstable (LP: #1050831). Remaining Ubuntu changes:
* debian/control:
  - Update description
  - Build-depend on libtiff-dev instead of libtiff4-dev.
* debian/rules:
  - Set gettext domain and update translation templates
* debian/patches/02_help-message.patch:
* debian/patches/03_gimp.desktop.in.in.patch:
  - Update some strings for Ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
502
502
  return carbon_item;
503
503
}
504
504
 
 
505
static gboolean
 
506
menu_event_activate_callback (GtkMenuItem *widget)
 
507
{
 
508
  gtk_menu_item_activate (GTK_MENU_ITEM  (widget));
 
509
 
 
510
  return FALSE;
 
511
}
505
512
 
506
513
/*
507
514
 * carbon event handler
545
552
                                         sizeof (widget), 0, &widget);
546
553
              if (err == noErr && GTK_IS_WIDGET (widget))
547
554
                {
548
 
                  gtk_menu_item_activate (GTK_MENU_ITEM (widget));
 
555
                  GSource  *source;
 
556
                  GClosure *closure;
 
557
 
 
558
                  closure = g_cclosure_new (G_CALLBACK (menu_event_activate_callback),
 
559
                                            widget, NULL);
 
560
 
 
561
                  g_object_watch_closure (G_OBJECT (widget), closure);
 
562
 
 
563
                  source = g_idle_source_new ();
 
564
                  g_source_set_priority (source, G_PRIORITY_HIGH);
 
565
                  g_source_set_closure (source, closure);
 
566
                  g_source_attach (source, NULL);
 
567
                  g_source_unref (source);
 
568
 
549
569
                  return noErr;
550
570
                }
551
571
            }