cleanup
git-svn-id: http://tint2.googlecode.com/svn/trunk@491 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -19,6 +19,7 @@ include_directories( ../util
|
|||||||
|
|
||||||
set(SOURCES ../util/common.c
|
set(SOURCES ../util/common.c
|
||||||
main.c
|
main.c
|
||||||
|
properties.c
|
||||||
theme_view.c )
|
theme_view.c )
|
||||||
add_executable( tint2conf ${SOURCES} )
|
add_executable( tint2conf ${SOURCES} )
|
||||||
target_link_libraries( tint2conf ${X11_LIBRARIES}
|
target_link_libraries( tint2conf ${X11_LIBRARIES}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "theme_view.h"
|
#include "theme_view.h"
|
||||||
|
#include "properties.h"
|
||||||
|
|
||||||
#define SNAPSHOT_TICK 190
|
#define SNAPSHOT_TICK 190
|
||||||
|
|
||||||
@@ -105,8 +106,8 @@ static const char *global_ui =
|
|||||||
" <toolitem action='ViewApply'/>"
|
" <toolitem action='ViewApply'/>"
|
||||||
" </toolbar>"
|
" </toolbar>"
|
||||||
" <popup name='ThemePopup'>"
|
" <popup name='ThemePopup'>"
|
||||||
" <menuitem action='EditRefresh'/>"
|
|
||||||
" <menuitem action='ThemeProperties'/>"
|
" <menuitem action='ThemeProperties'/>"
|
||||||
|
" <menuitem action='EditRefresh'/>"
|
||||||
" <menuitem action='ViewApply'/>"
|
" <menuitem action='ViewApply'/>"
|
||||||
" <separator/>"
|
" <separator/>"
|
||||||
" <menuitem action='ThemeDelete'/>"
|
" <menuitem action='ThemeDelete'/>"
|
||||||
@@ -339,6 +340,12 @@ static void menuProperties()
|
|||||||
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(g_theme_view));
|
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(g_theme_view));
|
||||||
if (gtk_tree_selection_get_selected(GTK_TREE_SELECTION(sel), &model, &iter)) {
|
if (gtk_tree_selection_get_selected(GTK_TREE_SELECTION(sel), &model, &iter)) {
|
||||||
gtk_tree_model_get(model, &iter, COL_THEME_FILE, &file, -1);
|
gtk_tree_model_get(model, &iter, COL_THEME_FILE, &file, -1);
|
||||||
|
/*
|
||||||
|
GtkWidget *prop;
|
||||||
|
prop = create_properties();
|
||||||
|
gtk_window_present(GTK_WINDOW(prop));
|
||||||
|
//printf("menuProperties : fin\n");
|
||||||
|
*/
|
||||||
|
|
||||||
cmd = g_strdup_printf("%s \'%s\' &", g_cmd_property, file);
|
cmd = g_strdup_printf("%s \'%s\' &", g_cmd_property, file);
|
||||||
printf("cmd %s\n", cmd);
|
printf("cmd %s\n", cmd);
|
||||||
@@ -346,6 +353,7 @@ static void menuProperties()
|
|||||||
|
|
||||||
g_free(cmd);
|
g_free(cmd);
|
||||||
g_free(file);
|
g_free(file);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user