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

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

Issue 504065: Remove svn revision from branded builds. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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 | Annotate | Revision Log
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/about_chrome_dialog.h" 5 #include "chrome/browser/gtk/about_chrome_dialog.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/gfx/gtk_util.h" 9 #include "app/gfx/gtk_util.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 } // namespace 101 } // namespace
102 102
103 void ShowAboutDialogForProfile(GtkWindow* parent, Profile* profile) { 103 void ShowAboutDialogForProfile(GtkWindow* parent, Profile* profile) {
104 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 104 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
105 static GdkPixbuf* background = rb.GetPixbufNamed(IDR_ABOUT_BACKGROUND); 105 static GdkPixbuf* background = rb.GetPixbufNamed(IDR_ABOUT_BACKGROUND);
106 scoped_ptr<FileVersionInfo> version_info( 106 scoped_ptr<FileVersionInfo> version_info(
107 FileVersionInfo::CreateFileVersionInfoForCurrentModule()); 107 FileVersionInfo::CreateFileVersionInfoForCurrentModule());
108 std::wstring current_version = version_info->file_version(); 108 std::wstring current_version = version_info->file_version();
109 #if !defined(GOOGLE_CHROME_BUILD)
109 current_version += L" ("; 110 current_version += L" (";
110 current_version += version_info->last_change(); 111 current_version += version_info->last_change();
111 current_version += L")"; 112 current_version += L")";
113 #endif
112 string16 version_modifier = platform_util::GetVersionStringModifier(); 114 string16 version_modifier = platform_util::GetVersionStringModifier();
113 if (version_modifier.length()) { 115 if (version_modifier.length()) {
114 current_version += L" "; 116 current_version += L" ";
115 current_version += UTF16ToWide(version_modifier); 117 current_version += UTF16ToWide(version_modifier);
116 } 118 }
117 119
118 // Build the dialog. 120 // Build the dialog.
119 GtkWidget* dialog = gtk_dialog_new_with_buttons( 121 GtkWidget* dialog = gtk_dialog_new_with_buttons(
120 l10n_util::GetStringUTF8(IDS_ABOUT_CHROME_TITLE).c_str(), 122 l10n_util::GetStringUTF8(IDS_ABOUT_CHROME_TITLE).c_str(),
121 parent, 123 parent,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 gtk_util::kContentAreaBorder, 0, 282 gtk_util::kContentAreaBorder, 0,
281 gtk_util::kContentAreaBorder, gtk_util::kContentAreaBorder); 283 gtk_util::kContentAreaBorder, gtk_util::kContentAreaBorder);
282 gtk_container_add(GTK_CONTAINER(alignment), vbox); 284 gtk_container_add(GTK_CONTAINER(alignment), vbox);
283 gtk_box_pack_start(GTK_BOX(content_area), alignment, FALSE, FALSE, 0); 285 gtk_box_pack_start(GTK_BOX(content_area), alignment, FALSE, FALSE, 0);
284 286
285 g_signal_connect(dialog, "response", G_CALLBACK(OnDialogResponse), NULL); 287 g_signal_connect(dialog, "response", G_CALLBACK(OnDialogResponse), NULL);
286 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); 288 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE);
287 gtk_widget_show_all(dialog); 289 gtk_widget_show_all(dialog);
288 gtk_widget_grab_focus(close_button); 290 gtk_widget_grab_focus(close_button);
289 } 291 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/about_window_controller.mm ('k') | chrome/browser/views/about_chrome_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698