~ubuntu-branches/debian/sid/gnome-main-menu/sid

« back to all changes in this revision

Viewing changes to main-menu/src/main-menu-ui.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2009-11-08 21:22:49 UTC
  • mto: (5.1.3 squeeze)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20091108212249-9cql8cptajeua2eh
Tags: upstream-0.9.13
ImportĀ upstreamĀ versionĀ 0.9.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <X11/Xlib.h>
35
35
#include <gdk/gdkx.h>
36
36
#include <gio/gio.h>
 
37
#include <unistd.h>
 
38
#include <libslab/slab.h>
37
39
 
38
 
#include "tile.h"
39
 
#include "application-tile.h"
40
 
#include "document-tile.h"
41
 
#include "directory-tile.h"
42
 
#include "system-tile.h"
43
40
#include "hard-drive-status-tile.h"
44
41
#include "network-status-tile.h"
45
42
 
46
43
#include "tile-table.h"
47
44
 
48
45
#include "tomboykeybinder.h"
49
 
#include "libslab-utils.h"
50
 
#include "double-click-detector.h"
51
46
 
52
47
#define ROOT_GCONF_DIR             "/desktop/gnome/applications/main-menu"
53
48
#define CURRENT_PAGE_GCONF_KEY     ROOT_GCONF_DIR "/file-area/file_class"
441
436
                g_object_unref (G_OBJECT (g_object_get_data (
442
437
                        G_OBJECT (priv->panel_buttons [i]), "double-click-detector")));
443
438
 
444
 
                gtk_widget_unref (GTK_WIDGET (priv->panel_buttons [i]));
 
439
                g_object_unref (priv->panel_buttons [i]);
445
440
        }
446
441
 
447
442
        libslab_gconf_notify_remove (priv->search_cmd_gconf_mntr_id);
505
500
 
506
501
                button_parent = gtk_widget_get_parent (GTK_WIDGET (priv->panel_buttons [i]));
507
502
 
508
 
                gtk_widget_ref (GTK_WIDGET (priv->panel_buttons [i]));
 
503
                g_object_ref (priv->panel_buttons [i]);
509
504
                gtk_container_remove (
510
505
                        GTK_CONTAINER (button_parent), GTK_WIDGET (priv->panel_buttons [i]));
511
506
 
2428
2423
        gtk_widget_set_style (GTK_WIDGET (priv->panel_applet), NULL);
2429
2424
        rc_style = gtk_rc_style_new ();
2430
2425
        gtk_widget_modify_style (GTK_WIDGET (priv->panel_applet), rc_style);
2431
 
        gtk_rc_style_unref (rc_style);
 
2426
        g_object_unref (rc_style);
2432
2427
 
2433
2428
        switch (type) {
2434
2429
                case PANEL_NO_BACKGROUND: