~micahg/ubuntu/natty/pidgin/2.7.9-2

« back to all changes in this revision

Viewing changes to pidgin/gtkpounce.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-11-05 19:44:21 UTC
  • mfrom: (62.1.1 maverick-security) (2.3.12 sid)
  • Revision ID: james.westby@ubuntu.com-20101105194421-8r8o4pzw2m5j4hiy
Tags: 1:2.7.5-1ubuntu1
Resync on Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
{
195
195
        GtkTreeIter iter;
196
196
        PurpleAccount *account;
197
 
        PurplePounceEvent events;
198
197
        gboolean recurring;
199
198
        const char *pouncer;
200
199
        const char *pouncee;
202
201
 
203
202
        account = purple_pounce_get_pouncer(pounce);
204
203
 
205
 
        events = purple_pounce_get_events(pounce);
206
 
 
207
204
        pixbuf = pidgin_create_prpl_icon(account, PIDGIN_PRPL_ICON_MEDIUM);
208
205
 
209
206
        pouncer = purple_account_get_username(account);
498
495
        GPtrArray *sound_widgets;
499
496
        GPtrArray *exec_widgets;
500
497
        GtkWidget *send_msg_imhtml;
 
498
        GtkWidget *scrolledWindow1024x600 = NULL;
501
499
 
502
500
        g_return_if_fail((cur_pounce != NULL) ||
503
501
                         (account != NULL) ||
547
545
 
548
546
        /* Create the vbox that will contain all the prefs stuff. */
549
547
        vbox2 = gtk_vbox_new(FALSE, PIDGIN_HIG_BOX_SPACE);
550
 
        gtk_box_pack_start(GTK_BOX(vbox1), vbox2, TRUE, TRUE, 0);
551
 
 
 
548
        if (gdk_screen_get_default() != NULL && gdk_screen_get_height(gdk_screen_get_default()) <= 600) {
 
549
          scrolledWindow1024x600 = gtk_scrolled_window_new(NULL,NULL);
 
550
          gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledWindow1024x600),GTK_POLICY_NEVER,GTK_POLICY_AUTOMATIC);
 
551
          gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolledWindow1024x600),vbox2);
 
552
          gtk_box_pack_start(GTK_BOX(vbox1), scrolledWindow1024x600, TRUE, TRUE, 0);
 
553
        } else {
 
554
          gtk_box_pack_start(GTK_BOX(vbox1), vbox2, TRUE, TRUE, 0);
 
555
        }
552
556
        /* Create the "Pounce on Whom" frame. */
553
557
        frame = pidgin_make_frame(vbox2, _("Pounce on Whom"));
554
558
 
1015
1019
        }
1016
1020
 
1017
1021
        gtk_widget_show(vbox2);
 
1022
        if (gdk_screen_get_default() != NULL && gdk_screen_get_height(gdk_screen_get_default()) <= 600) {
 
1023
          gint oldw,oldh;
 
1024
          gtk_widget_show(scrolledWindow1024x600);
 
1025
          gtk_window_get_size(GTK_WINDOW(window),&oldw,&oldh);
 
1026
          gtk_window_resize(GTK_WINDOW (window),oldw,448);
 
1027
        }
1018
1028
        gtk_widget_show(window);
1019
1029
}
1020
1030