[gtk+] gtkwindow: Rename get_decoration_size => get_shadow_width
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkwindow: Rename get_decoration_size => get_shadow_width
- Date: Fri, 10 Jan 2014 17:11:49 +0000 (UTC)
commit 8a1fb19e883e20b2fe333a16fb7393a6e0cd6632
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 9 14:44:34 2014 -0500
gtkwindow: Rename get_decoration_size => get_shadow_width
gtk/gtkapplicationwindow.c | 4 ++--
gtk/gtkwindow.c | 30 +++++++++++++++---------------
gtk/gtkwindowprivate.h | 4 ++--
3 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index df337c0..4e2a1b7 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -565,7 +565,7 @@ gtk_application_window_real_get_preferred_width (GtkWidget *widget,
gtk_widget_get_preferred_width (window->priv->menubar, &menubar_min_width, &menubar_nat_width);
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
- _gtk_window_get_decoration_size (GTK_WINDOW (widget), &border);
+ _gtk_window_get_shadow_width (GTK_WINDOW (widget), &border);
menubar_min_width += 2 * border_width + border.left + border.right;
menubar_nat_width += 2 * border_width + border.left + border.right;
@@ -601,7 +601,7 @@ gtk_application_window_real_get_preferred_width_for_height (GtkWidget *widget,
gtk_widget_get_preferred_width_for_height (window->priv->menubar, menubar_height, &menubar_min_width,
&menubar_nat_width);
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
- _gtk_window_get_decoration_size (GTK_WINDOW (widget), &border);
+ _gtk_window_get_shadow_width (GTK_WINDOW (widget), &border);
menubar_min_width += 2 * border_width + border.left + border.right;
menubar_nat_width += 2 * border_width + border.left + border.right;
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index c3259c0..c8fb6c0 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6140,8 +6140,8 @@ update_window_style_classes (GtkWindow *window)
}
static void
-get_decoration_size (GtkWidget *widget,
- GtkBorder *decorations)
+get_shadow_width (GtkWidget *widget,
+ GtkBorder *shadow_width)
{
GtkWindowPrivate *priv = GTK_WINDOW (widget)->priv;
GtkBorder border = { 0 };
@@ -6152,7 +6152,7 @@ get_decoration_size (GtkWidget *widget,
GtkCssValue *shadows;
gint i;
- *decorations = border;
+ *shadow_width = border;
if (!priv->client_decorated)
return;
@@ -6194,7 +6194,7 @@ get_decoration_size (GtkWidget *widget,
max_borders (&border, &margin);
sum_borders (&d, &border);
- max_borders (decorations, &d);
+ max_borders (shadow_width, &d);
}
gtk_style_context_restore (context);
@@ -6261,7 +6261,7 @@ update_border_windows (GtkWindow *window)
"decoration-resize-handle", &handle,
NULL);
gtk_style_context_restore (context);
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
if (!priv->resizable ||
priv->tiled ||
@@ -6574,7 +6574,7 @@ _gtk_window_set_allocation (GtkWindow *window,
gtk_widget_set_allocation (widget, allocation);
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
border_width = gtk_container_get_border_width (GTK_CONTAINER (window));
child_allocation.x = 0;
@@ -7042,7 +7042,7 @@ gtk_window_get_resize_grip_area (GtkWindow *window,
if (!priv->has_resize_grip)
return FALSE;
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
gtk_widget_get_allocation (widget, &allocation);
gtk_widget_style_get (widget,
@@ -7727,7 +7727,7 @@ gtk_window_get_preferred_width (GtkWidget *widget,
if (priv->decorated &&
!priv->fullscreen)
{
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
if (priv->title_box != NULL)
gtk_widget_get_preferred_width (priv->title_box,
@@ -7778,7 +7778,7 @@ gtk_window_get_preferred_width_for_height (GtkWidget *widget,
if (priv->decorated &&
!priv->fullscreen)
{
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
if (priv->title_box != NULL)
gtk_widget_get_preferred_width_for_height (priv->title_box,
@@ -7831,7 +7831,7 @@ gtk_window_get_preferred_height (GtkWidget *widget,
if (priv->decorated &&
!priv->fullscreen)
{
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
if (priv->title_box != NULL)
gtk_widget_get_preferred_height (priv->title_box,
@@ -7884,7 +7884,7 @@ gtk_window_get_preferred_height_for_width (GtkWidget *widget,
if (priv->decorated &&
!priv->fullscreen)
{
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
if (priv->title_box != NULL)
gtk_widget_get_preferred_height_for_width (priv->title_box,
@@ -9231,7 +9231,7 @@ gtk_window_draw (GtkWidget *widget,
context = gtk_widget_get_style_context (widget);
- get_decoration_size (widget, &window_border);
+ get_shadow_width (widget, &window_border);
gtk_widget_get_allocation (widget, &allocation);
if (!gtk_widget_get_app_paintable (widget) &&
@@ -11559,8 +11559,8 @@ _gtk_window_handle_button_press_for_widget (GtkWidget *widget,
}
void
-_gtk_window_get_decoration_size (GtkWindow *window,
- GtkBorder *border)
+_gtk_window_get_shadow_width (GtkWindow *window,
+ GtkBorder *border)
{
- get_decoration_size (GTK_WIDGET (window), border);
+ get_shadow_width (GTK_WIDGET (window), border);
}
diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h
index a1b1f8e..8826782 100644
--- a/gtk/gtkwindowprivate.h
+++ b/gtk/gtkwindowprivate.h
@@ -89,8 +89,8 @@ void _gtk_window_notify_keys_changed (GtkWindow *window);
gboolean _gtk_window_titlebar_shows_app_menu (GtkWindow *window);
-void _gtk_window_get_decoration_size (GtkWindow *window,
- GtkBorder *border);
+void _gtk_window_get_shadow_width (GtkWindow *window,
+ GtkBorder *border);
gboolean _gtk_window_get_maximized (GtkWindow *window);
void _gtk_window_toggle_maximized (GtkWindow *window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]