aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/support.c')
-rw-r--r--src/support.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/support.c b/src/support.c
index 5783b0a..cb90cda 100644
--- a/src/support.c
+++ b/src/support.c
@@ -1,38 +1,37 @@
+#include "callbacks.h"
+#include "interface.h"
+#include "support.h"
+
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
-
#include <gdk/gdkkeysyms.h>
-#include <gtk/gtk.h>
-#include "callbacks.h"
-#include "interface.h"
-#include "support.h"
#include <config.h>
-GtkWidget *xpm_label_box (gchar * xpm_filename)
+GtkWidget *xpm_label_box(gchar *xpm_filename)
{
GtkWidget *box;
GtkWidget *image;
/* Create box for image and label */
- box = gtk_hbox_new (FALSE, 0);
- gtk_container_set_border_width (GTK_CONTAINER (box), 2);
+ box = gtk_hbox_new(FALSE, 0);
+ gtk_container_set_border_width(GTK_CONTAINER(box), 2);
/* Now on to the image stuff */
- image = gtk_image_new_from_file (xpm_filename);
+ image = gtk_image_new_from_file(xpm_filename);
/* Create a label for the button */
/* Pack the image and label into the box */
- gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 3);
+ gtk_box_pack_start(GTK_BOX(box), image, FALSE, FALSE, 3);
- gtk_widget_show (image);
+ gtk_widget_show(image);
return box;
}
-int error_dialog (char *message)
+int error_dialog(char *message)
{
GtkWidget *dialog;
int test;
@@ -40,10 +39,9 @@ int error_dialog (char *message)
dialog = gtk_message_dialog_new(NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- "%s", message);
+ GTK_BUTTONS_CLOSE, "%s", message);
- test = gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
+ test = gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
return test;
}

Privacy Policy