email : ashaduri '@' gmail.com
***************************************************************************/
+#define GARUX_DISABLE_GTKTHEME
+#ifndef GARUX_DISABLE_GTKTHEME
#include <iostream>
#include <fstream>
}
+
+#endif // GARUX_DISABLE_GTKTHEME
email : ashaduri '@' gmail.com
***************************************************************************/
+#define GARUX_DISABLE_GTKTHEME
+#ifndef GARUX_DISABLE_GTKTHEME
+
#ifndef _GTKTHEME_H_
#define _GTKTHEME_H_
void gtkThemeDlg();
#endif
+
+#endif // GARUX_DISABLE_GTKTHEME
SaveCommandMap( path.c_str() );
}
+void add_local_rc_files(){
+#define GARUX_DISABLE_GTKTHEME
+#ifndef GARUX_DISABLE_GTKTHEME
/* FIXME: HACK: not GTK3 compatible
https://developer.gnome.org/gtk2/stable/gtk2-Resource-Files.html#gtk-rc-add-default-file
https://developer.gnome.org/gtk3/stable/gtk3-Resource-Files.html#gtk-rc-add-default-file
> gtk_rc_add_default_file has been deprecated since version 3.0 and should not be used in newly-written code.
> Use GtkStyleContext with a custom GtkStyleProvider instead
*/
-void gtk_rc_add_default_file (const gchar *filename);
-void add_local_rc_files(){
{
StringOutputStream path( 512 );
path << AppPath_get() << ".gtkrc-2.0.radiant";
gtk_rc_add_default_file( path.c_str() );
}
#endif
+#endif // GARUX_DISABLE_GTKTHEME
}
int main( int argc, char* argv[] ){
#include "referencecache.h"
#include "texwindow.h"
#include "filterbar.h"
+
+#define GARUX_DISABLE_GTKTHEME
+#ifndef GARUX_DISABLE_GTKTHEME
#include "gtktheme.h"
+#endif
struct layout_globals_t
create_menu_item_with_mnemonic( menu_3, "Black and Green", "ColorSchemeBlackAndGreen" );
create_menu_item_with_mnemonic( menu_3, "Maya/Max/Lightwave Emulation", "ColorSchemeYdnar" );
+#ifndef GARUX_DISABLE_GTKTHEME
create_menu_item_with_mnemonic( menu_in_menu, "GTK Theme...", "gtkThemeDlg" );
+#endif
menu_separator( menu_in_menu );
GlobalToggles_insert( "MouseScale", makeCallbackF(ScaleMode), ToggleItem::AddCallbackCaller( g_scalemode_button ) );
GlobalToggles_insert( "MouseDrag", makeCallbackF(DragMode), ToggleItem::AddCallbackCaller( g_dragmode_button ), Accelerator( 'Q' ) );
+#ifndef GARUX_DISABLE_GTKTHEME
GlobalCommands_insert( "gtkThemeDlg", makeCallbackF(gtkThemeDlg) );
+#endif
GlobalCommands_insert( "ColorSchemeOriginal", makeCallbackF(ColorScheme_Original) );
GlobalCommands_insert( "ColorSchemeQER", makeCallbackF(ColorScheme_QER) );
GlobalCommands_insert( "ColorSchemeBlackAndGreen", makeCallbackF(ColorScheme_Black) );