[gnome-panel] panel-properties-dialog: hardcode minimum panel size to 16px
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-properties-dialog: hardcode minimum panel size to 16px
- Date: Tue, 13 Oct 2015 00:12:18 +0000 (UTC)
commit e97726d3acb9838b15be3046b42803c32ff7846d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Oct 13 02:47:00 2015 +0300
panel-properties-dialog: hardcode minimum panel size to 16px
gnome-panel/panel-properties-dialog.c | 2 +-
gnome-panel/panel-toplevel.c | 7 -------
gnome-panel/panel-toplevel.h | 1 -
3 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/gnome-panel/panel-properties-dialog.c b/gnome-panel/panel-properties-dialog.c
index d5071c9..396ff32 100644
--- a/gnome-panel/panel-properties-dialog.c
+++ b/gnome-panel/panel-properties-dialog.c
@@ -90,7 +90,7 @@ panel_properties_size_spin_update_range (PanelPropertiesDialog *dialog)
return;
gtk_spin_button_set_range (GTK_SPIN_BUTTON (dialog->size_spin),
- panel_toplevel_get_minimum_size (dialog->toplevel),
+ 16,
panel_toplevel_get_maximum_size (dialog->toplevel));
}
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 902531f..8f5560e 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -5296,13 +5296,6 @@ panel_toplevel_get_is_hidden (PanelToplevel *toplevel)
}
int
-panel_toplevel_get_minimum_size (PanelToplevel *toplevel)
-{
- return calculate_minimum_height (GTK_WIDGET (toplevel),
- toplevel->priv->orientation);
-}
-
-int
panel_toplevel_get_maximum_size (PanelToplevel *toplevel)
{
int monitor_width, monitor_height;
diff --git a/gnome-panel/panel-toplevel.h b/gnome-panel/panel-toplevel.h
index 2266f88..8547c4f 100644
--- a/gnome-panel/panel-toplevel.h
+++ b/gnome-panel/panel-toplevel.h
@@ -152,7 +152,6 @@ gboolean panel_toplevel_get_enable_arrows (PanelToplevel
void panel_toplevel_update_edges (PanelToplevel *toplevel);
gboolean panel_toplevel_is_last (PanelToplevel *toplevel);
-int panel_toplevel_get_minimum_size (PanelToplevel *toplevel);
int panel_toplevel_get_maximum_size (PanelToplevel *toplevel);
GSList *panel_toplevel_list_toplevels (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]