diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 16:54:46 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-24 16:54:46 +0000 |
commit | 5e56a3a8e84ee5b4417077f5f3ec17b7dbe73bd1 (patch) | |
tree | ba6052962bcb4cd3eb60f7308ef19db86fff9e7d /chrome/common/gtk_util.cc | |
parent | 6d39d49d2001775bf486299261613298e1aab12a (diff) | |
download | chromium_src-5e56a3a8e84ee5b4417077f5f3ec17b7dbe73bd1.zip chromium_src-5e56a3a8e84ee5b4417077f5f3ec17b7dbe73bd1.tar.gz chromium_src-5e56a3a8e84ee5b4417077f5f3ec17b7dbe73bd1.tar.bz2 |
GTK Themes: Theme the bookmark bubble. (And first run bubble).
http://crbug.com/16783
Review URL: http://codereview.chromium.org/160025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.cc')
-rw-r--r-- | chrome/common/gtk_util.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/gtk_util.cc b/chrome/common/gtk_util.cc index dfb0ac8..19eb595b 100644 --- a/chrome/common/gtk_util.cc +++ b/chrome/common/gtk_util.cc @@ -140,8 +140,8 @@ guint32 GetGdkEventTime(GdkEvent* event) { namespace gtk_util { -GtkWidget* CreateLabeledControlsGroup(const GdkColor* text_color, - const char* text, ...) { +GtkWidget* CreateLabeledControlsGroup(std::vector<GtkWidget*>* labels, + const char* text, ...) { va_list ap; va_start(ap, text); GtkWidget* table = gtk_table_new(0, 2, FALSE); @@ -153,8 +153,8 @@ GtkWidget* CreateLabeledControlsGroup(const GdkColor* text_color, GtkWidget* control = va_arg(ap, GtkWidget*); GtkWidget* label = gtk_label_new(text); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - if (text_color) - gtk_widget_modify_fg(label, GTK_STATE_NORMAL, text_color); + if (labels) + labels->push_back(label); gtk_table_attach(GTK_TABLE(table), label, 0, 1, row, row + 1, |