~ubuntu-branches/ubuntu/oneiric/xfce4-panel/oneiric

« back to all changes in this revision

Viewing changes to plugins/launcher/launcher.c

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2011-02-27 00:55:05 UTC
  • mfrom: (4.1.4 experimental)
  • Revision ID: james.westby@ubuntu.com-20110227005505-i405gx4j4d1s0tjg
Tags: 4.8.2-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12
12
 * more details.
13
13
 *
14
 
 * You should have received a copy of the GNU Library General Public License
15
 
 * along with this library; if not, write to the Free Software Foundation,
16
 
 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the Free Software
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 */
18
18
 
19
19
#ifdef HAVE_CONFIG_H
34
34
#include <libxfce4panel/libxfce4panel.h>
35
35
#include <common/panel-private.h>
36
36
#include <common/panel-xfconf.h>
 
37
#include <common/panel-utils.h>
37
38
 
38
39
#include "launcher.h"
39
40
#include "launcher-dialog.h"
384
385
  g_signal_connect_after (G_OBJECT (plugin->button), "expose-event",
385
386
      G_CALLBACK (launcher_plugin_button_expose_event), plugin);
386
387
 
387
 
 
388
 
 
389
388
  plugin->child = xfce_panel_image_new ();
390
389
  gtk_container_add (GTK_CONTAINER (plugin->button), plugin->child);
391
390
 
403
402
  g_signal_connect (G_OBJECT (plugin->arrow), "drag-leave",
404
403
      G_CALLBACK (launcher_plugin_arrow_drag_leave), plugin);
405
404
 
 
405
  panel_utils_set_atk_info (plugin->arrow, _("Open launcher menu"), NULL);
 
406
 
406
407
  /* accept all sorts of drag data, but filter in drag-drop, so we can
407
408
   * send other sorts of drops to parent widgets */
408
409
  gtk_drag_dest_set (plugin->button, 0, NULL, 0, 0);
1702
1703
      icon_name = garcon_menu_item_get_icon_name (item);
1703
1704
      xfce_panel_image_set_from_source (XFCE_PANEL_IMAGE (plugin->child),
1704
1705
          exo_str_is_empty (icon_name) ? GTK_STOCK_MISSING_IMAGE : icon_name);
 
1706
 
 
1707
      panel_utils_set_atk_info (plugin->button,
 
1708
          garcon_menu_item_get_name (item),
 
1709
          garcon_menu_item_get_comment (item));
1705
1710
    }
1706
1711
  else
1707
1712
    {