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

« back to all changes in this revision

Viewing changes to gtk/msg_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
 
 
7
 
#include "msg_cb.h"
8
 
#include "msg_dbox.h"
9
 
#include "support.h"
10
 
 
11
 
 
12
 
void msg_box(const gchar *title, gchar *message)
13
 
{
14
 
  GtkWidget *dbox;
15
 
  gpointer data;
16
 
 
17
 
  dbox = create_msg_dbox();
18
 
 
19
 
  data = gtk_object_get_data(GTK_OBJECT(dbox), "msg_dbox");
20
 
  gtk_window_set_title (GTK_WINDOW(data), title);
21
 
  data = gtk_object_get_data(GTK_OBJECT(dbox), "label2");
22
 
  gtk_label_set_text(GTK_LABEL(data), message);
23
 
 
24
 
  gtk_widget_show_all(dbox);
25
 
}
26
 
 
27
 
void
28
 
msg_ok_button_clicked                  (GtkButton       *button,
29
 
                                        gpointer         user_data)
30
 
{
31
 
  gtk_widget_destroy(GTK_WIDGET(user_data));
32
 
}