Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Require at least Gtk 2.4 for dolcon.
[doldaconnect.git]
/
config
/
util
/
dolconf.c
diff --git
a/config/util/dolconf.c
b/config/util/dolconf.c
index
1d09c33
..
07c6077
100644
(file)
--- a/
config/util/dolconf.c
+++ b/
config/util/dolconf.c
@@
-639,7
+639,8
@@
void cb_ast_shareadd_clicked(GtkWidget *widget, gpointer uudata)
void cb_cfw_shareadd_clicked(GtkWidget *widget, gpointer uudata)
{
void cb_cfw_shareadd_clicked(GtkWidget *widget, gpointer uudata)
{
- shareadd();
+ if(shareadd())
+ dirty = 1;
}
void cb_ast_sharerem_clicked(GtkWidget *widget, gpointer uudata)
}
void cb_ast_sharerem_clicked(GtkWidget *widget, gpointer uudata)
@@
-656,8
+657,10
@@
void cb_cfw_sharerem_clicked(GtkWidget *widget, gpointer uudata)
{
GtkTreeIter iter;
{
GtkTreeIter iter;
- if(gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(cfw_sharelist)), NULL, &iter))
+ if(gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(cfw_sharelist)), NULL, &iter))
{
gtk_list_store_remove(shares, &iter);
gtk_list_store_remove(shares, &iter);
+ dirty = 1;
+ }
}
void cb_ast_checkports(GtkWidget *widget, gpointer uudata)
}
void cb_ast_checkports(GtkWidget *widget, gpointer uudata)
@@
-837,8
+840,8
@@
int main(int argc, char **argv)
} else if(state == 2) {
for(i = 3; i < FD_SETSIZE; i++)
close(i);
} else if(state == 2) {
for(i = 3; i < FD_SETSIZE; i++)
close(i);
- execlp("dolcon
", "dolcon
", NULL);
- perror("dolcon");
+ execlp("dolcon
-launch", "dolcon-launch
", NULL);
+ perror("dolcon
-launch
");
exit(127);
} else {
msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Internal error (Unknown state)"));
exit(127);
} else {
msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Internal error (Unknown state)"));