gtk+ r22242 - in trunk: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22242 - in trunk: . gtk
- Date: Tue, 27 Jan 2009 19:22:56 +0000 (UTC)
Author: matthiasc
Date: Tue Jan 27 19:22:56 2009
New Revision: 22242
URL: http://svn.gnome.org/viewvc/gtk+?rev=22242&view=rev
Log:
Fix alignment and icons in spin buttons
Modified:
trunk/ChangeLog
trunk/gtk/gtkentry.c
Modified: trunk/gtk/gtkentry.c
==============================================================================
--- trunk/gtk/gtkentry.c (original)
+++ trunk/gtk/gtkentry.c Tue Jan 27 19:22:56 2009
@@ -449,8 +449,6 @@
GdkEventButton *event);
static gboolean gtk_entry_mnemonic_activate (GtkWidget *widget,
gboolean group_cycling);
-static void gtk_entry_state_changed (GtkWidget *widget,
- GtkStateType previous_state);
static void gtk_entry_check_cursor_blink (GtkEntry *entry);
static void gtk_entry_pend_cursor_blink (GtkEntry *entry);
static void gtk_entry_reset_blink_time (GtkEntry *entry);
@@ -459,6 +457,11 @@
gint *y,
gint *width,
gint *height);
+static void get_text_area_size (GtkEntry *entry,
+ gint *x,
+ gint *y,
+ gint *width,
+ gint *height);
static void get_widget_window_size (GtkEntry *entry,
gint *x,
gint *y,
@@ -2246,7 +2249,7 @@
GtkEntryPrivate *priv = GTK_ENTRY_GET_PRIVATE (entry);
gint x, y, width, height;
- gtk_entry_get_text_area_size (entry, &x, &y, &width, &height);
+ get_text_area_size (entry, &x, &y, &width, &height);
primary->y = y;
primary->height = height;
@@ -2601,7 +2604,7 @@
widget->window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask);
gdk_window_set_user_data (widget->window, entry);
- gtk_entry_get_text_area_size (entry, &attributes.x, &attributes.y, &attributes.width, &attributes.height);
+ get_text_area_size (entry, &attributes.x, &attributes.y, &attributes.width, &attributes.height);
if (GTK_WIDGET_IS_SENSITIVE (widget))
{
@@ -2775,7 +2778,7 @@
GtkAllocation secondary;
EntryIconInfo *icon_info = NULL;
- gtk_entry_get_text_area_size (entry, &x, &y, &width, &height);
+ get_text_area_size (entry, &x, &y, &width, &height);
get_icon_allocations (entry, &primary, &secondary);
@@ -2836,6 +2839,24 @@
}
static void
+get_text_area_size (GtkEntry *entry,
+ gint *x,
+ gint *y,
+ gint *width,
+ gint *height)
+{
+ GtkEntryClass *class;
+
+ g_return_if_fail (GTK_IS_ENTRY (entry));
+
+ class = GTK_ENTRY_GET_CLASS (entry);
+
+ if (class->get_text_area_size)
+ class->get_text_area_size (entry, x, y, width, height);
+}
+
+
+static void
get_widget_window_size (GtkEntry *entry,
gint *x,
gint *y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]