[totem] Really remove the border width
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Really remove the border width
- Date: Tue, 27 Apr 2010 17:07:59 +0000 (UTC)
commit 05eaadb15edb1508a45157b3993b86dd3b73ea10
Author: Bastien Nocera <hadess hadess net>
Date: Tue Apr 27 18:04:32 2010 +0100
Really remove the border width
src/totem-object.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 4d92149..27082d8 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -90,8 +90,6 @@
#define VOLUME_EPSILON (1e-10)
-#define BVW_VBOX_BORDER_WIDTH 1
-
/* casts are to shut gcc up */
static const GtkTargetEntry target_table[] = {
{ (gchar*) "text/uri-list", 0, 0 },
@@ -2853,7 +2851,7 @@ show_controls (Totem *totem, gboolean was_fullscreen)
if (totem->controls_visibility == TOTEM_CONTROLS_VISIBLE) {
if (was_fullscreen == FALSE) {
height = allocation.height;
- width = allocation.width;
+ width = allocation.width;
}
gtk_widget_set_sensitive (menubar, TRUE);
@@ -2877,7 +2875,7 @@ show_controls (Totem *totem, gboolean was_fullscreen)
&value);
handle_size = g_value_get_int (&value);
g_value_unset (&value);
-
+
gtk_widget_show (totem->sidebar);
gtk_widget_get_allocation (totem->sidebar, &allocation_sidebar);
width += allocation_sidebar.width + handle_size;
@@ -2885,9 +2883,6 @@ show_controls (Totem *totem, gboolean was_fullscreen)
gtk_widget_hide (totem->sidebar);
}
- gtk_container_set_border_width (GTK_CONTAINER (bvw_box),
- BVW_VBOX_BORDER_WIDTH);
-
if (was_fullscreen == FALSE) {
GtkAllocation allocation_menubar;
GtkAllocation allocation_controlbar;
@@ -2898,9 +2893,7 @@ show_controls (Totem *totem, gboolean was_fullscreen)
gtk_widget_get_allocation (statusbar, &allocation_statusbar);
height += allocation_menubar.height
+ allocation_controls.height
- + allocation_statusbar.height
- + 2 * BVW_VBOX_BORDER_WIDTH;
- width += 2 * BVW_VBOX_BORDER_WIDTH;
+ + allocation_statusbar.height;
gtk_window_resize (GTK_WINDOW(totem->win),
width, height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]