~ubuntu-branches/ubuntu/edgy/tilp/edgy

« back to all changes in this revision

Viewing changes to gtk/font_cb.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien BLACHE
  • Date: 2004-05-22 21:12:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040522211203-awg2cuw03guyvyz9
Tags: 6.72-2
* debian/control
  + Build-Depends: libticables3 (>= 3.8.4-1).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifdef HAVE_CONFIG_H
2
 
#  include <config.h>
3
 
#endif
4
 
 
5
 
#include <gtk/gtk.h>
6
 
#include <string.h>
7
 
 
8
 
#include "font_cb.h"
9
 
#include "font_dbox.h"
10
 
#include "support.h"
11
 
 
12
 
#include "tilibs.h"
13
 
#include "struct.h"
14
 
 
15
 
#include "clist.h"
16
 
 
17
 
gint display_font_dbox()
18
 
{
19
 
  gtk_widget_show_all(create_font_dbox());
20
 
  return 0;
21
 
}
22
 
 
23
 
void
24
 
on_font_dbox_show                      (GtkWidget       *widget,
25
 
                                        gpointer         user_data)
26
 
{
27
 
  //fprintf(stdout, "show: <%s>\n", options.right_font_name);
28
 
  gtk_font_selection_dialog_set_font_name(GTK_FONT_SELECTION_DIALOG(user_data),
29
 
                                          options.right_font_name);
30
 
}
31
 
 
32
 
 
33
 
void
34
 
on_font_ok_button1_clicked                  (GtkButton       *button,
35
 
                                        gpointer         user_data)
36
 
{
37
 
  strcpy(options.right_font_name, gtk_font_selection_dialog_get_font_name(GTK_FONT_SELECTION_DIALOG(user_data)));
38
 
  //fprintf(stdout, "ok: <%s>\n", options.right_font_name);
39
 
 
40
 
  gtk_widget_destroy(GTK_WIDGET(user_data));
41
 
  refresh_clist();
42
 
}
43
 
 
44
 
 
45
 
void
46
 
on_font_cancel_button1_clicked              (GtkButton       *button,
47
 
                                        gpointer         user_data)
48
 
{
49
 
  gtk_widget_destroy(GTK_WIDGET(user_data));
50
 
}
51
 
 
52
 
 
53
 
void
54
 
on_font_apply_button1_clicked               (GtkButton       *button,
55
 
                                        gpointer         user_data)
56
 
{
57
 
  refresh_clist();
58
 
}
59
 
 
60
 
/* */