source: trunk/dports/irc/xchat2/files/patch-gtk2.19.7.diff @ 67999

Last change on this file since 67999 was 67999, checked in by afb@…, 10 years ago

make xchat2 work with latest gtk2 (#24979)

File size: 3.3 KB
  • ./src/fe-gtk/dccgui.c

    # http://sourceforge.net/tracker/?func=detail&aid=2974436&group_id=239&atid=100239
    old new dcc_detail_label (char *text, GtkWidget 
    700700static void
    701701dcc_exp_cb (GtkWidget *exp, GtkWidget *box)
    702702{
    703         if (GTK_WIDGET_VISIBLE (box))
     703        if (gtk_widget_get_visible (box))
    704704                gtk_widget_hide (box);
    705705        else
    706706                gtk_widget_show (box);
  • ./src/fe-gtk/fe-gtk.c

    old new fe_gui_info (session *sess, int info_typ 
    819819        switch (info_type)
    820820        {
    821821        case 0: /* window status */
    822                 if (!GTK_WIDGET_VISIBLE (GTK_WINDOW (sess->gui->window)))
     822                if (!gtk_widget_get_visible (GTK_WINDOW (sess->gui->window)))
    823823                        return 2;       /* hidden (iconified or systray) */
    824824#if GTK_CHECK_VERSION(2,4,0)
    825825                if (gtk_window_is_active (GTK_WINDOW (sess->gui->window)))
  • ./src/fe-gtk/maingui.c

    old new mg_show_generic_tab (GtkWidget *box) 
    599599        int num;
    600600        GtkWidget *f = NULL;
    601601
    602         if (current_sess && GTK_WIDGET_HAS_FOCUS (current_sess->gui->input_box))
     602        if (current_sess && gtk_widget_has_focus (current_sess->gui->input_box))
    603603                f = current_sess->gui->input_box;
    604604
    605605        num = gtk_notebook_page_num (GTK_NOTEBOOK (mg_gui->note_book), box);
    mg_set_topic_tip (session *sess) 
    809809static void
    810810mg_hide_empty_pane (GtkPaned *pane)
    811811{
    812         if ((pane->child1 == NULL || !GTK_WIDGET_VISIBLE (pane->child1)) &&
    813                  (pane->child2 == NULL || !GTK_WIDGET_VISIBLE (pane->child2)))
     812        if ((pane->child1 == NULL || !gtk_widget_get_visible (pane->child1)) &&
     813                 (pane->child2 == NULL || !gtk_widget_get_visible (pane->child2)))
    814814        {
    815815                gtk_widget_hide (GTK_WIDGET (pane));
    816816                return;
    mg_rightpane_cb (GtkPaned *pane, GParamS 
    25852585{
    25862586        int handle_size;
    25872587
    2588 /*      if (pane->child1 == NULL || (!GTK_WIDGET_VISIBLE (pane->child1)))
     2588/*      if (pane->child1 == NULL || (!gtk_widget_get_visible (pane->child1)))
    25892589                return;
    2590         if (pane->child2 == NULL || (!GTK_WIDGET_VISIBLE (pane->child2)))
     2590        if (pane->child2 == NULL || (!gtk_widget_get_visible (pane->child2)))
    25912591                return;*/
    25922592
    25932593        gtk_widget_style_get (GTK_WIDGET (pane), "handle-size", &handle_size, NULL);
  • ./src/fe-gtk/menu.c

    old new static gboolean 
    16701670menu_canacaccel (GtkWidget *widget, guint signal_id, gpointer user_data)
    16711671{
    16721672        /* GTK2.2 behaviour */
    1673         return GTK_WIDGET_IS_SENSITIVE (widget);
     1673        return gtk_widget_is_sensitive (widget);
    16741674}
    16751675
    16761676#endif
  • ./src/fe-gtk/plugin-tray.c

    old new tray_toggle_visibility (gboolean force_h 
    457457        if (!win)
    458458                return FALSE;
    459459
    460         if (force_hide || GTK_WIDGET_VISIBLE (win))
     460        if (force_hide || gtk_widget_get_visible (win))
    461461        {
    462462                gtk_window_get_position (win, &x, &y);
    463463                screen = gtk_window_get_screen (win);
Note: See TracBrowser for help on using the repository browser.