~ubuntu-branches/ubuntu/maverick/crossfire-client/maverick

« back to all changes in this revision

Viewing changes to gtk-v2/src/config.c

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2007-04-13 21:15:44 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070413211544-vjo6zesj6g0wgmwf
Tags: 1.10.0-1
* New upstream release
* Install the README, README-dev and TODO files specific to the GTK2
  client to the corresponding package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
char *rcsid_gtk2_config_c =
2
 
    "$Id: config.c,v 1.5 2006/05/15 05:57:43 mwedel Exp $";
 
2
    "$Id: config.c 4880 2006-09-04 22:05:09Z mwedel $";
3
3
/*
4
4
    Crossfire client, a client program for the crossfire program.
5
5
 
359
359
        }
360
360
        gtk_tree_model_get(model, &iter, 0, &buf, -1);
361
361
 
362
 
        if (face_info.want_faceset != NULL && !strcasecmp(face_info.want_faceset, buf)) {
 
362
        if (face_info.want_faceset && !strcasecmp(face_info.want_faceset, buf)) {
363
363
            gtk_combo_box_set_active(GTK_COMBO_BOX(config_combobox_faceset), i);
364
364
            g_free(buf);
365
365
            break;
446
446
     * them through its own/different malloc library.
447
447
     */
448
448
    if (buf) {
449
 
        if (face_info.want_faceset) free(face_info.want_faceset);
 
449
        free(face_info.want_faceset);
450
450
        face_info.want_faceset = strdup_local(buf);
451
451
        g_free(buf);
452
452
    }
555
555
 
556
556
 
557
557
 
558
 
void
559
 
on_save_window_position_activate       (GtkMenuItem     *menuitem,
560
 
                                        gpointer         user_data)
 
558
void save_winpos()
561
559
{
562
 
 
563
560
    char savename[MAX_BUF],buf[MAX_BUF];
564
561
    FILE    *save;
565
562
    int     x,y,w,h,wx,wy;
595
592
 
596
593
}
597
594
 
 
595
 
 
596
void
 
597
on_save_window_position_activate       (GtkMenuItem     *menuitem,
 
598
                                        gpointer         user_data)
 
599
{
 
600
    save_winpos();
 
601
}
 
602
 
 
603
 
598
604
void load_window_positions(GtkWidget *window_root)
599
605
{
600
606
    char loadname[MAX_BUF],buf[MAX_BUF], *cp;