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

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

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: 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/gtk/find_bar_gtk.cc ('k') | chrome/browser/gtk/info_bubble_gtk.h » ('j') | 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/gtk_floating_container.h" 5 #include "chrome/browser/gtk/gtk_floating_container.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <gtk/gtkprivate.h> 8 #include <gtk/gtkprivate.h>
9 #include <gtk/gtkmarshal.h> 9 #include <gtk/gtkmarshal.h>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 G_MININT, 108 G_MININT,
109 G_MAXINT, 109 G_MAXINT,
110 0, 110 0,
111 static_cast<GParamFlags>(GTK_PARAM_READWRITE))); 111 static_cast<GParamFlags>(GTK_PARAM_READWRITE)));
112 112
113 floating_container_signals[SET_FLOATING_POSITION] = 113 floating_container_signals[SET_FLOATING_POSITION] =
114 g_signal_new("set-floating-position", 114 g_signal_new("set-floating-position",
115 G_OBJECT_CLASS_TYPE(object_class), 115 G_OBJECT_CLASS_TYPE(object_class),
116 static_cast<GSignalFlags>(G_SIGNAL_RUN_FIRST | 116 static_cast<GSignalFlags>(G_SIGNAL_RUN_FIRST |
117 G_SIGNAL_ACTION), 117 G_SIGNAL_ACTION),
118 0u, 118 NULL,
119 NULL, NULL, 119 NULL, NULL,
120 gtk_marshal_VOID__BOXED, 120 gtk_marshal_VOID__BOXED,
121 G_TYPE_NONE, 1, 121 G_TYPE_NONE, 1,
122 GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE); 122 GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
123 } 123 }
124 124
125 static void gtk_floating_container_init(GtkFloatingContainer* container) { 125 static void gtk_floating_container_init(GtkFloatingContainer* container) {
126 GTK_WIDGET_SET_FLAGS(container, GTK_NO_WINDOW); 126 GTK_WIDGET_SET_FLAGS(container, GTK_NO_WINDOW);
127 127
128 container->floating_children = NULL; 128 container->floating_children = NULL;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 child_info->x = 0; 311 child_info->x = 0;
312 child_info->y = 0; 312 child_info->y = 0;
313 313
314 gtk_widget_set_parent(widget, GTK_WIDGET(container)); 314 gtk_widget_set_parent(widget, GTK_WIDGET(container));
315 315
316 container->floating_children = 316 container->floating_children =
317 g_list_append(container->floating_children, child_info); 317 g_list_append(container->floating_children, child_info);
318 } 318 }
319 319
320 G_END_DECLS 320 G_END_DECLS
OLDNEW
« no previous file with comments | « chrome/browser/gtk/find_bar_gtk.cc ('k') | chrome/browser/gtk/info_bubble_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698