Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: chrome/browser/gtk/task_manager_gtk.cc

Issue 208043: Task Manager for OS X: Set up columns, show rows. (Closed)
Patch Set: Fight Cocoa. Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/cocoa/task_manager_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/gtk/task_manager_gtk.h" 5 #include "chrome/browser/gtk/task_manager_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 GTK_DIALOG_NO_SEPARATOR, 341 GTK_DIALOG_NO_SEPARATOR,
342 l10n_util::GetStringUTF8(IDS_TASK_MANAGER_KILL).c_str(), 342 l10n_util::GetStringUTF8(IDS_TASK_MANAGER_KILL).c_str(),
343 kTaskManagerResponseKill, 343 kTaskManagerResponseKill,
344 NULL); 344 NULL);
345 345
346 // Allow browser windows to go in front of the task manager dialog in 346 // Allow browser windows to go in front of the task manager dialog in
347 // metacity. 347 // metacity.
348 gtk_window_set_type_hint(GTK_WINDOW(dialog_), GDK_WINDOW_TYPE_HINT_NORMAL); 348 gtk_window_set_type_hint(GTK_WINDOW(dialog_), GDK_WINDOW_TYPE_HINT_NORMAL);
349 349
350 // The response button should not be sensitive when the dialog is first opened 350 // The response button should not be sensitive when the dialog is first opened
351 // because the selecetion is initially empty. 351 // because the selection is initially empty.
352 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog_), 352 gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog_),
353 kTaskManagerResponseKill, FALSE); 353 kTaskManagerResponseKill, FALSE);
354 354
355 GtkWidget* link = gtk_chrome_link_button_new( 355 GtkWidget* link = gtk_chrome_link_button_new(
356 l10n_util::GetStringUTF8(IDS_TASK_MANAGER_ABOUT_MEMORY_LINK).c_str()); 356 l10n_util::GetStringUTF8(IDS_TASK_MANAGER_ABOUT_MEMORY_LINK).c_str());
357 gtk_dialog_add_action_widget(GTK_DIALOG(dialog_), link, 357 gtk_dialog_add_action_widget(GTK_DIALOG(dialog_), link,
358 kTaskManagerAboutMemoryLink); 358 kTaskManagerAboutMemoryLink);
359 359
360 // Setting the link widget to secondary positions the button on the left side 360 // Setting the link widget to secondary positions the button on the left side
361 // of the action area (vice versa for RTL layout). 361 // of the action area (vice versa for RTL layout).
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 TaskManagerGtk* task_manager) { 755 TaskManagerGtk* task_manager) {
756 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) { 756 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) {
757 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget 757 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget
758 // is destroyed. The deleted object will receive gtk signals otherwise. 758 // is destroyed. The deleted object will receive gtk signals otherwise.
759 gtk_dialog_response(GTK_DIALOG(task_manager->dialog_), 759 gtk_dialog_response(GTK_DIALOG(task_manager->dialog_),
760 GTK_RESPONSE_DELETE_EVENT); 760 GTK_RESPONSE_DELETE_EVENT);
761 } 761 }
762 762
763 return TRUE; 763 return TRUE;
764 } 764 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/task_manager_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698