[gtk+] Cosmetics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Cosmetics
- Date: Sun, 7 Jul 2013 03:11:29 +0000 (UTC)
commit c0c752fab1872b5b91663fff2529bfb8bf384f2a
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 5 21:43:16 2013 -0400
Cosmetics
gtk/gtkcontainer.c | 2 +-
gtk/gtkwidget.c | 2 +-
gtk/gtkwindow.c | 6 ++----
3 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 636a02e..2d6d2df 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1807,7 +1807,7 @@ _gtk_container_queue_restyle (GtkContainer *container)
* (typically the toplevel, but other containers can be set as resize
* containers with gtk_container_set_resize_mode()), marks the container
* and all parents up to and including the resize container as needing
- * to have sizes recompted, and if necessary adds the resize container
+ * to have sizes recomputed, and if necessary adds the resize container
* to the queue of containers that will be resized out at idle.
*/
void
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index c80d1a5..8a3b0a0 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6528,7 +6528,7 @@ _gtk_widget_draw_windows (GdkWindow *window,
continue;
gdk_window_get_position (child_window, &wx, &wy);
- _gtk_widget_draw_windows (child_window, cr, wx,wy);
+ _gtk_widget_draw_windows (child_window, cr, wx, wy);
}
g_list_free (children);
}
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 521b389..ccf8349 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5265,7 +5265,7 @@ create_decoration (GtkWidget *widget)
NULL);
context = gtk_widget_get_style_context (priv->title_box);
gtk_style_context_add_class (context, "titlebar");
- gtk_widget_set_parent (priv->title_box, GTK_WIDGET (window));
+ gtk_widget_set_parent (priv->title_box, widget);
title = g_markup_printf_escaped ("<b>%s</b>",
priv->title ? priv->title : get_default_title ());
@@ -8326,7 +8326,6 @@ gtk_window_move_resize (GtkWindow *window)
* If the configure request has not changed, we don't ever resend
* it, because it could mean fighting the user or window manager.
*
- *
* To prepare the configure request, we come up with a base size/pos:
* - the one from gtk_window_move()/gtk_window_resize()
* - else default_width, default_height if we haven't ever
@@ -8594,8 +8593,7 @@ gtk_window_move_resize (GtkWindow *window)
* to postpone our configure request until later.
*/
info->last = saved_last_info;
-
- gtk_widget_queue_resize_no_redraw (widget); /* migth recurse for GTK_RESIZE_IMMEDIATE */
+ gtk_widget_queue_resize_no_redraw (widget); /* might recurse for GTK_RESIZE_IMMEDIATE */
}
return; /* Bail out, we didn't really process the move/resize */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]