From f7acf55db3ab4b97d60faae24555a07b6b08d43c Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 22 Nov 2016 17:47:06 +0300 Subject: move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option and require mate-panel >= 1.17 WARNING: use GTK+3 build of libmateweather for this build. that lib is not migrated to GTK+3 only as we will possibly use libgweather instead of it. --- battstat/power-management.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'battstat/power-management.c') diff --git a/battstat/power-management.c b/battstat/power-management.c index 8c2eb7b2..9f4113f0 100644 --- a/battstat/power-management.c +++ b/battstat/power-management.c @@ -61,10 +61,6 @@ "the ACPI subsystem. Check to make sure the " \ "ACPI subsystem is properly loaded.") -#if GTK_CHECK_VERSION (3, 0, 0) -#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) -#endif - static const char *apm_readinfo (BatteryStatus *status); static int pm_initialised; #ifdef HAVE_UPOWER @@ -121,7 +117,7 @@ initialise_test( void ) test_status.on_ac_power = FALSE; test_status.charging = FALSE; - box = GTK_BOX( gtk_vbox_new( 5, FALSE ) ); + box = GTK_BOX( gtk_box_new (GTK_ORIENTATION_VERTICAL, 5 ) ); gtk_box_pack_start( box, gtk_label_new( "percent" ), TRUE, TRUE, 0); w = gtk_spin_button_new_with_range( -1.0, 100.0, 1 ); -- cgit v1.2.1