summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkselection-x11.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-11-12 19:16:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-11-12 19:16:11 +0000
commit2cb2d33b2086617fcb8d968f08bde3e60e09a9f7 (patch)
treecbc6bbde17abfff2378b0feaa305c9dda25a0c1f /gdk/x11/gdkselection-x11.c
parent114d0b6b25d64d70d68997d64d46b561ecfe4e46 (diff)
downloadgtk+-2cb2d33b2086617fcb8d968f08bde3e60e09a9f7.tar.gz
Fix problem with using result of g_get_charset() backwards - pointed out
Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix problem with using result of g_get_charset() backwards - pointed out by Mikael Hermansson <mikeh@bahnhof.se>. * gtk/gtkwindow.c (gtk_window_compute_hints): Support negative min_width/height and max_width/height to mean "requisition"; this allows setting a window to be user-resizable in only one direction easily. * gtk/testgtk.c (create_main_window): Remove hard-coded usize - set a default size in the vertical direction.
Diffstat (limited to 'gdk/x11/gdkselection-x11.c')
-rw-r--r--gdk/x11/gdkselection-x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkselection-x11.c b/gdk/x11/gdkselection-x11.c
index 454d1cbd7e..8ca9389834 100644
--- a/gdk/x11/gdkselection-x11.c
+++ b/gdk/x11/gdkselection-x11.c
@@ -415,7 +415,7 @@ gdk_text_property_to_utf8_list (GdkAtom encoding,
gint local_count;
gint i;
gchar *charset = NULL;
- gboolean need_conversion= g_get_charset (&charset);
+ gboolean need_conversion = !g_get_charset (&charset);
gint count = 0;
GError *error = NULL;
@@ -605,7 +605,7 @@ gdk_utf8_to_compound_text (const gchar *str,
g_return_val_if_fail (str != NULL, FALSE);
- need_conversion = g_get_charset (&charset);
+ need_conversion = !g_get_charset (&charset);
tmp_str = sanitize_utf8 (str);