~ubuntu-branches/ubuntu/utopic/cairo-dock-plug-ins/utopic

« back to all changes in this revision

Viewing changes to switcher/src/applet-draw.c

  • Committer: Matthieu Baerts
  • Date: 2013-10-04 13:11:52 UTC
  • mfrom: (1.1.33)
  • Revision ID: matttbe@gmail.com-20131004131152-lig9ijrvkc0g00w6
Tags: 3.3.0-0ubuntu1
* New upstream release.
* Detailed Upstream ChangeLog (beta 2 -> release)
  - Dbus: don't notify of startup if the applet is already controling a
    window
  - Dialogs: tooltip view: fixed the position of the widget inside the
    dialog when it's placed on top of the screen
  - Folder: watch for drop events onto the docks only
  - GMenu:
    - Apps: set the desktop environment to correctly exclude apps
    - Search: When there is no result, display 'Launch this command'
    - Search: launch app: do not restrict to the left click
    - Search: match: display name: locate a substring instead of compare
      the first chars
  - Indicator-Generic: forced the 'data' to be a GldiModuleInstance
  - logout: select shutdown menu item: do not create a list and iter all
    menu items, just save the pointer
  - Messaging Menu: Indicator3: detach the icon at startup: the icon is
    inserted when the entry will be added
  - Messaging Menu: with old versions of libindicator: fixed tiny memory
    leaks
  - po: updated translations
  - Switcher: correctly update the icon by listening more signals
  - Switcher: fixed the drawing of the desktop name in the desklet when
    it's larger than the desklet
  - Terminal: when dropped something in the terminal, take the data and
    not only the text + give the focus just after
  - All: menu functions have been renamed in libgldi
  - All: remove useless g_print
* Some bugs have been fixed:
  - logout: UPower: invalid fastbin entry LP: #1212981
  - logout: Use logind for suspend/hibernate/poweroff/reboot LP: #1175810
  - keyboard: cairo-dock crashes on keyboard layout swtcher LP: #668061
  - keyboard: Cairo-dock is unable to get CAPS Lock and NumLck values
    LP: #476842
  - quick-browser: Error Message LP: #660261
  - recent-events: Move from zeitgeist-1.0 to zeitgeist-2.0 LP: #1197569
* debian/control: bumped Cairo-Dock (core) version

Show diffs side-by-side

added added

removed removed

Lines of Context:
543
543
        
544
544
        // on ajoute une entree au menu avec le pixbuf.
545
545
        gchar *cLabel = cairo_dock_cut_string (pIcon->cName, 50);
546
 
        GtkWidget *pMenuItem = gtk_image_menu_item_new_with_label (cLabel);
 
546
        GtkWidget *pMenuItem = gldi_menu_add_item (pMenu, cLabel, "", G_CALLBACK (_show_window), pIcon);
547
547
        g_free (cLabel);
 
548
        
548
549
        if (pixbuf)
549
550
        {
550
551
                GtkWidget *image = gtk_image_new_from_pixbuf (pixbuf);
551
 
                _gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (pMenuItem), image);
 
552
                gldi_menu_item_set_image (pMenuItem, image);
552
553
                g_object_unref (pixbuf);
553
554
        }
554
 
        gtk_menu_shell_append  (GTK_MENU_SHELL (pMenu), pMenuItem);
555
 
        g_signal_connect (G_OBJECT (pMenuItem), "activate", G_CALLBACK (_show_window), pIcon);
556
555
}
557
556
void cd_switcher_build_windows_list (GtkWidget *pMenu)
558
557
{