commit xchat-gnome for openSUSE:Factory
Hello community, here is the log from the commit of package xchat-gnome for openSUSE:Factory checked in at Thu Apr 1 16:17:13 CEST 2010. -------- --- GNOME/xchat-gnome/xchat-gnome.changes 2009-12-02 12:10:14.000000000 +0100 +++ /mounts/work_src_done/STABLE/xchat-gnome/xchat-gnome.changes 2010-03-22 09:44:56.000000000 +0100 @@ -1,0 +2,5 @@ +Mon Mar 22 08:01:07 UTC 2010 - dimstar@opensuse.org + +- Add xchat-gnome-gtk2.19.7.patch to fix build with gtk 2.19.7. + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- xchat-gnome-gtk2.19.7.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xchat-gnome.spec ++++++ --- /var/tmp/diff_new_pack.AXLoAY/_old 2010-04-01 16:17:02.000000000 +0200 +++ /var/tmp/diff_new_pack.AXLoAY/_new 2010-04-01 16:17:02.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package xchat-gnome (Version 0.26.1) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -41,8 +41,10 @@ Group: Productivity/Networking/IRC Summary: A more simple IRC Client Version: 0.26.1 -Release: 2 +Release: 3 Source: http://download.gnome.org/sources/%{name}/0.24/%{name}-%{version}.tar.bz2 +# PATCH-FIx-UPSTREAM xchat-gnome-gtk2.19.7.patch dimstar@opensuse.org -- Fix build with gtk 2.19.7. Patch taken from upstream git. +Patch0: xchat-gnome-gtk2.19.7.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://xchat-gnome.navi.cx/ %gconf_schemas_prereq @@ -72,6 +74,9 @@ %lang_package %prep %setup -q +%if 0%{suse_version} > 1120 +%patch0 -p1 +%endif translation-update-upstream %build ++++++ xchat-gnome-gtk2.19.7.patch ++++++
From 9293922f0f69a6cb2b1a44c5b542eced14f84f9c Mon Sep 17 00:00:00 2001 From: Ritesh Khadgaray
Date: Fri, 12 Mar 2010 10:03:58 +0000 Subject: remove deprecated GTK+ symbols, GTK_WIDGET_VISIBLE and GTK_WIDGET_REALIZED
--- diff --git a/src/fe-gnome/fe-gnome.c b/src/fe-gnome/fe-gnome.c index ee57a26..261b29e 100644 --- a/src/fe-gnome/fe-gnome.c +++ b/src/fe-gnome/fe-gnome.c @@ -788,7 +788,7 @@ fe_gui_info (session * sess, int info_type) { switch (info_type) { case 0: - if (!GTK_WIDGET_VISIBLE (GTK_WINDOW (gui.main_window))) { + if (!gtk_widget_get_visible (GTK_WIDGET (gui.main_window))) { return 2; } if (gtk_window_is_active (GTK_WINDOW (gui.main_window))) { diff --git a/src/fe-gnome/find-bar.c b/src/fe-gnome/find-bar.c index a4f4308..d4ef5e9 100644 --- a/src/fe-gnome/find-bar.c +++ b/src/fe-gnome/find-bar.c @@ -247,7 +247,7 @@ find_bar_close (FindBar *bar) { gint position; - if (!GTK_WIDGET_VISIBLE (bar)) { + if (!gtk_widget_get_visible (GTK_WIDGET (bar))) { return; } diff --git a/src/fe-gnome/text-entry.c b/src/fe-gnome/text-entry.c index b7994df..24c192b 100644 --- a/src/fe-gnome/text-entry.c +++ b/src/fe-gnome/text-entry.c @@ -667,7 +667,7 @@ text_entry_set_current (TextEntry *entry, struct session *sess) char *selection = NULL, *text = NULL; int start, end; - g_return_if_fail (GTK_WIDGET_REALIZED (widget)); + g_return_if_fail (gtk_widget_get_realized (widget)); if (sess == priv->current) { return; diff --git a/src/fe-gnome/userlist-gui.c b/src/fe-gnome/userlist-gui.c index 33394e9..c6671df 100644 --- a/src/fe-gnome/userlist-gui.c +++ b/src/fe-gnome/userlist-gui.c @@ -265,12 +265,12 @@ userlist_gui_show (void) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gui.userlist_toggle), TRUE); - if (!GTK_WIDGET_REALIZED (gui.userlist_window)) { + if (!gtk_widget_get_realized (gui.userlist_window)) { gtk_widget_realize (gui.userlist_window); } gtk_widget_size_request (gui.userlist, &request); - if (GTK_WIDGET_REALIZED (gui.userlist_toggle)) + if (gtk_widget_get_realized (gui.userlist_toggle)) anchor_widget = gui.userlist_toggle; else anchor_widget = gui.main_window; diff --git a/src/fe-gnome/xtext.c b/src/fe-gnome/xtext.c index 22d8ccb..7f1365a 100644 --- a/src/fe-gnome/xtext.c +++ b/src/fe-gnome/xtext.c @@ -1086,7 +1086,7 @@ gtk_xtext_size_allocate (GtkWidget * widget, GtkAllocation * allocation) xtext->avoid_trans = FALSE; widget->allocation = *allocation; - if (GTK_WIDGET_REALIZED (widget)) + if (gtk_widget_get_realized (widget)) { xtext->buffer->window_width = allocation->width; xtext->buffer->window_height = allocation->height; @@ -4109,7 +4109,7 @@ gtk_xtext_set_palette (GtkXText * xtext, GdkColor palette[]) xtext->palette[i] = palette[i].pixel; } - if (GTK_WIDGET_REALIZED (xtext)) + if (gtk_widget_get_realized (GTK_WIDGET(xtext))) { xtext_set_fg (xtext, xtext->fgc, XTEXT_FG); xtext_set_bg (xtext, xtext->fgc, XTEXT_BG); @@ -4207,7 +4207,7 @@ gtk_xtext_set_font (GtkXText *xtext, char *name) gtk_xtext_fix_indent (xtext->buffer); - if (GTK_WIDGET_REALIZED (xtext)) + if (gtk_widget_get_realized (GTK_WIDGET(xtext))) gtk_xtext_recalc_widths (xtext->buffer, TRUE); return TRUE; @@ -4244,7 +4244,7 @@ gtk_xtext_set_background (GtkXText * xtext, GdkPixmap * pixmap, gboolean trans) if (trans) { xtext->shaded = shaded; - if (GTK_WIDGET_REALIZED (xtext)) + if (gtk_widget_get_realized (GTK_WIDGET (xtext))) gtk_xtext_load_trans (xtext); return; } @@ -4256,14 +4256,14 @@ gtk_xtext_set_background (GtkXText * xtext, GdkPixmap * pixmap, gboolean trans) if (pixmap != 0) { g_object_ref (pixmap); - if (GTK_WIDGET_REALIZED (xtext)) + if (gtk_widget_get_realized (GTK_WIDGET (xtext))) { gdk_gc_set_tile (xtext->bgc, pixmap); gdk_gc_set_ts_origin (xtext->bgc, 0, 0); xtext->ts_x = xtext->ts_y = 0; gdk_gc_set_fill (xtext->bgc, GDK_TILED); } - } else if (GTK_WIDGET_REALIZED (xtext)) + } else if (gtk_widget_get_realized (GTK_WIDGET (xtext))) { g_object_unref (xtext->bgc); val.subwindow_mode = GDK_INCLUDE_INFERIORS; @@ -4512,7 +4512,7 @@ gtk_xtext_render_page (GtkXText * xtext) int subline; int startline = xtext->adj->value; - if(!GTK_WIDGET_REALIZED(xtext)) + if(!gtk_widget_get_realized (GTK_WIDGET (xtext))) return; if (xtext->buffer->indent < MARGIN) @@ -4632,7 +4632,7 @@ gtk_xtext_render_page (GtkXText * xtext) void gtk_xtext_refresh (GtkXText * xtext, int do_trans) { - if (GTK_WIDGET_REALIZED (GTK_WIDGET (xtext))) + if (gtk_widget_get_realized (GTK_WIDGET (xtext))) { #if defined(USE_XLIB) || defined(WIN32) if (xtext->transparent && do_trans) @@ -5196,7 +5196,7 @@ gtk_xtext_buffer_show (GtkXText *xtext, xtext_buffer *buf, int render) xtext->io_tag = 0; } - if (!GTK_WIDGET_REALIZED (GTK_WIDGET (xtext))) + if (!gtk_widget_get_realized (GTK_WIDGET (xtext))) gtk_widget_realize (GTK_WIDGET (xtext)); gdk_drawable_get_size (GTK_WIDGET (xtext)->window, &w, &h); -- cgit v0.8.3.1 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de