~ubuntu-branches/ubuntu/oneiric/gnome-system-monitor/oneiric-proposed

« back to all changes in this revision

Viewing changes to src/interface.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-21 16:49:23 UTC
  • mto: (2.1.7 sid) (1.1.59 upstream)
  • mto: This revision was merged to the branch mainline in revision 78.
  • Revision ID: james.westby@ubuntu.com-20110621164923-o6titd2srek1uh84
Tags: upstream-3.0.1
ImportĀ upstreamĀ versionĀ 3.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
        { "MemoryMaps", NULL, N_("_Memory Maps"), "<control>M",
79
79
          N_("Open the memory maps associated with a process"), G_CALLBACK (cb_show_memory_maps) },
 
80
        // Translators: this means 'Files that are open' (open is no verb here)
80
81
        { "OpenFiles", NULL, N_("Open _Files"), "<control>F",
81
82
          N_("View the files opened by a process"), G_CALLBACK (cb_show_open_files) },
82
83
 
459
460
                            TRUE,
460
461
                            0);
461
462
*/
462
 
        gtk_widget_set_size_request(GTK_WIDGET(load_graph_get_labels(net_graph)->net_in), 65, -1);
 
463
        gtk_widget_set_size_request(GTK_WIDGET(load_graph_get_labels(net_graph)->net_in), 100, -1);
463
464
        gtk_table_attach (GTK_TABLE (table), load_graph_get_labels(net_graph)->net_in, 2, 3, 0, 1, 
464
465
                          static_cast<GtkAttachOptions>(GTK_EXPAND | GTK_FILL), GTK_FILL, 0, 0);
465
466
 
515
516
                            TRUE,
516
517
                            0);
517
518
*/
518
 
        gtk_widget_set_size_request(GTK_WIDGET(load_graph_get_labels(net_graph)->net_out), 65, -1);
 
519
        gtk_widget_set_size_request(GTK_WIDGET(load_graph_get_labels(net_graph)->net_out), 100, -1);
519
520
        gtk_table_attach (GTK_TABLE (table), load_graph_get_labels(net_graph)->net_out, 2, 3, 0, 1, 
520
521
                          static_cast<GtkAttachOptions>(GTK_EXPAND | GTK_FILL), GTK_FILL, 0, 0);
521
522
 
619
620
        gtk_window_set_title(GTK_WINDOW(app), _("System Monitor"));
620
621
 
621
622
        GdkScreen* screen = gtk_widget_get_screen(app);
622
 
        GdkColormap* colormap = gdk_screen_get_rgba_colormap(screen);
 
623
        GdkVisual* visual = gdk_screen_get_rgba_visual(screen);
623
624
 
624
 
        /* use rgba colormap, if available */
625
 
        if (colormap)
626
 
                gtk_widget_set_default_colormap(colormap);
 
625
        /* use visual, if available */
 
626
        if (visual)
 
627
            gtk_widget_set_visual(app, visual);
627
628
 
628
629
        main_box = gtk_vbox_new (FALSE, 0);
629
630
        gtk_container_add(GTK_CONTAINER(app), main_box);
797
798
cb_toggle_tree (GtkAction *action, gpointer data)
798
799
{
799
800
        ProcData *procdata = static_cast<ProcData*>(data);
800
 
        GConfClient *client = procdata->client;
801
 
        gboolean show;
 
801
        GSettings *settings = procdata->settings;       gboolean show;
802
802
 
803
803
        show = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
804
804
        if (show == procdata->config.show_tree)
805
805
                return;
806
806
 
807
 
        gconf_client_set_bool (client, "/apps/procman/show_tree", show, NULL);
 
807
        g_settings_set_boolean (settings, "show-tree", show);
808
808
}