OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/libgtk2ui/chrome_gtk_frame.h" | 5 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_frame.h" |
6 | 6 |
| 7 G_GNUC_BEGIN_IGNORE_DEPRECATIONS |
| 8 |
7 G_BEGIN_DECLS | 9 G_BEGIN_DECLS |
8 | 10 |
9 // MetaFrames declaration | 11 // MetaFrames declaration |
10 G_DEFINE_TYPE(MetaFrames, meta_frames, GTK_TYPE_WINDOW) | 12 G_DEFINE_TYPE(MetaFrames, meta_frames, GTK_TYPE_WINDOW) |
11 | 13 |
12 static void meta_frames_class_init(MetaFramesClass* frames_class) { | 14 static void meta_frames_class_init(MetaFramesClass* frames_class) { |
13 // Noop since we don't declare anything. | 15 // Noop since we don't declare anything. |
14 } | 16 } |
15 | 17 |
16 static void meta_frames_init(MetaFrames* button) { | 18 static void meta_frames_init(MetaFrames* button) { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 static void chrome_gtk_frame_init(ChromeGtkFrame* frame) { | 146 static void chrome_gtk_frame_init(ChromeGtkFrame* frame) { |
145 } | 147 } |
146 | 148 |
147 GtkWidget* chrome_gtk_frame_new(void) { | 149 GtkWidget* chrome_gtk_frame_new(void) { |
148 return GTK_WIDGET(g_object_new(chrome_gtk_frame_get_type(), | 150 return GTK_WIDGET(g_object_new(chrome_gtk_frame_get_type(), |
149 "type", GTK_WINDOW_TOPLEVEL, | 151 "type", GTK_WINDOW_TOPLEVEL, |
150 NULL)); | 152 NULL)); |
151 } | 153 } |
152 | 154 |
153 G_END_DECLS | 155 G_END_DECLS |
OLD | NEW |