Skip to content

Commit

Permalink
Use setup-xml macros from setupdb
Browse files Browse the repository at this point in the history
  • Loading branch information
megastep committed Mar 8, 2006
1 parent b4b6b75 commit 5d1de91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
4 changes: 1 addition & 3 deletions check.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Check and Rescue Tool for Loki Setup packages. Verifies the consistency of the files,
* and optionally restores them from the original installation medium.
*
* $Id: check.c,v 1.16 2006-03-08 02:14:12 megastep Exp $
* $Id: check.c,v 1.17 2006-03-08 18:58:53 megastep Exp $
*/

#include <stdlib.h>
Expand Down Expand Up @@ -35,10 +35,8 @@

#if defined(ENABLE_GTK2)
#define CHECK_GLADE "check.gtk2.glade"
#define GLADE_XML_NEW(a, b) glade_xml_new(a, b, NULL)
#else
#define CHECK_GLADE "check.glade"
#define GLADE_XML_NEW(a, b) glade_xml_new(a, b)
#endif

product_t *product = NULL;
Expand Down
16 changes: 3 additions & 13 deletions gtk_ui.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GTK-based UI
$Id: gtk_ui.c,v 1.114 2006-03-07 20:31:04 megastep Exp $
$Id: gtk_ui.c,v 1.115 2006-03-08 18:58:53 megastep Exp $
*/

/* Modifications by Borland/Inprise Corp.
Expand Down Expand Up @@ -103,10 +103,8 @@

#if defined(ENABLE_GTK2)
#define SETUP_GLADE SETUP_BASE "setup.gtk2.glade"
#define GLADE_XML_NEW(a, b) glade_xml_new(a, b, NULL)
#else
#define SETUP_GLADE SETUP_BASE "setup.glade"
#define GLADE_XML_NEW(a, b) glade_xml_new(a, b)
#endif

#define LICENSE_FONT \
Expand Down Expand Up @@ -427,11 +425,7 @@ void setup_destroy_view_readme_slot( GtkWidget* w, gpointer data )
widget = glade_xml_get_widget(setup_glade_readme, "readme_dialog");
if (widget)
gtk_widget_hide(widget);
#ifdef ENABLE_GTK2
g_object_unref(G_OBJECT(setup_glade_readme));
#else
gtk_object_unref(GTK_OBJECT(setup_glade_readme));
#endif
GLADE_XML_UNREF(setup_glade_readme);
setup_glade_readme = NULL;
/*
* re-enable the 'view readme buttons...all 3 of them since we don't
Expand Down Expand Up @@ -497,11 +491,7 @@ void setup_destroy_license_slot( GtkWidget* w, gpointer data )
widget = glade_xml_get_widget(setup_glade_license, "license_dialog");
gtk_widget_hide(widget);
cur_state = SETUP_EXIT;
#ifdef ENABLE_GTK2
g_object_unref(G_OBJECT(setup_glade_license));
#else
gtk_object_unref(GTK_OBJECT(setup_glade_license));
#endif
GLADE_XML_UNREF(setup_glade_license);
}

void setup_button_warning_continue_slot( GtkWidget* widget, gpointer func_data )
Expand Down
3 changes: 1 addition & 2 deletions uninstall_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@

#include "config.h"
#include "setupdb.h"
#include "setup-xml.h"
#include "uninstall.h"
#include "uninstall_ui.h"

#if defined(ENABLE_GTK2)
#define UNINSTALL_GLADE "uninstall.gtk2.glade"
#define GLADE_XML_NEW(a, b) glade_xml_new(a, b, NULL)
#else
#define UNINSTALL_GLADE "uninstall.glade"
#define GLADE_XML_NEW(a, b) glade_xml_new(a, b)
#endif

static GladeXML *uninstall_glade;
Expand Down

0 comments on commit 5d1de91

Please sign in to comment.