~pkgcrosswire/xiphos/main

« back to all changes in this revision

Viewing changes to src/gnome2/about_trans.c

  • Committer: Dmitrijs Ledkovs
  • Date: 2010-11-14 00:38:52 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: dmitrij.ledkov@ubuntu.com-20101114003852-sjt227lz4qqi85xj
New upstream release 3.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Xiphos Bible Study Tool
3
3
 * about_trans.c - About Translation
4
4
 *
5
 
 * Copyright (C) 2008-2009 Xiphos Developer Team
 
5
 * Copyright (C) 2008-2010 Xiphos Developer Team
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or modify
8
8
 * it under the terms of the GNU General Public License as published by
99
99
        set_window_icon (GTK_WINDOW(dialog_about_trans));
100
100
        gtk_window_set_resizable(GTK_WINDOW(dialog_about_trans), FALSE);
101
101
 
102
 
        dialog_vbox = GTK_DIALOG(dialog_about_trans)->vbox;
 
102
        dialog_vbox = gtk_dialog_get_content_area(GTK_DIALOG(dialog_about_trans));
103
103
        g_object_set_data(G_OBJECT(dialog_about_trans),
104
104
                          "dialog_vbox", dialog_vbox);
105
105
        gtk_widget_show(dialog_vbox);
148
148
        gtk_box_pack_start(GTK_BOX(vbox), href, FALSE, FALSE, 0);
149
149
 
150
150
        dialog_action_area =
151
 
            GTK_DIALOG(dialog_about_trans)->action_area;
 
151
                gtk_dialog_get_action_area(GTK_DIALOG(dialog_about_trans));
152
152
        g_object_set_data(G_OBJECT(dialog_about_trans),
153
153
                            "dialog_action_area",
154
154
                            dialog_action_area);
166
166
        button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
167
167
        gtk_widget_show(button);
168
168
        gtk_container_add(GTK_CONTAINER(hbuttonbox), button);
 
169
#ifdef HAVE_GTK_218
 
170
        gtk_widget_set_can_default(button, TRUE);
 
171
#else
169
172
        GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
170
 
 
 
173
#endif
171
174
        g_signal_connect(GTK_OBJECT(button), "clicked",
172
175
                           G_CALLBACK(about_trans_ok), NULL);
173
176
        return dialog_about_trans;