[libgda/LIBGDA_4.2] GdauiDataProxyInfo: corrected display in case of empty data model
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] GdauiDataProxyInfo: corrected display in case of empty data model
- Date: Wed, 31 Aug 2011 19:58:46 +0000 (UTC)
commit 5a2a84b724d43db5b93e775cd2b9c1165bd42e42
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Jul 26 21:20:43 2011 +0200
GdauiDataProxyInfo: corrected display in case of empty data model
libgda-ui/gdaui-data-proxy-info.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgda-ui/gdaui-data-proxy-info.c b/libgda-ui/gdaui-data-proxy-info.c
index f10b3c9..4dabfc3 100644
--- a/libgda-ui/gdaui-data-proxy-info.c
+++ b/libgda-ui/gdaui-data-proxy-info.c
@@ -701,7 +701,9 @@ idle_modif_buttons_update (GdauiDataProxyInfo *info)
str = g_strdup_printf (" / %d", proxy_rows);
}
BLOCK_SPIN;
- gtk_spin_button_set_range (GTK_SPIN_BUTTON (info->priv->row_spin), 1, proxy_rows);
+ gtk_spin_button_set_range (GTK_SPIN_BUTTON (info->priv->row_spin),
+ proxy_rows > 0 ? 1 : 0,
+ proxy_rows);
if (row >= 0)
if (gtk_spin_button_get_value (GTK_SPIN_BUTTON (info->priv->row_spin)) != row+1)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (info->priv->row_spin), row+1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]