[Frugalware-darcs] fw-control-center: gnetconfig: pre_ups/downs and post_ups/downs should be deletable using DEL.

Priyank priyank at frugalware.org
Thu Jun 21 14:03:59 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070621073835-5ce2c-ae2e19bec9d1c00038fdd71d08d4388bbcbe7e58.gz;

[gnetconfig: pre_ups/downs and post_ups/downs should be deletable using DEL.
Priyank <priyank at frugalware.org>**20070621073835] {
hunk ./gnetconfig/src/gnetconfig-interface.c 141
-	gn_iflabel		= glade_xml_get_widget(xml, "fwn_interface_label");
+	gn_iflabel		= glade_xml_get_widget (xml, "fwn_interface_label");
hunk ./gnetconfig/src/gnetconfig-interface.c 302
-	/* unref xml object */
+	/* unref the libglade object */
hunk ./gnetconfig/src/gnetconfig-interface_opts.c 59
+static void cb_gn_preup_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data);
+static void cb_gn_predown_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data);
+static void cb_gn_postup_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data);
+static void cb_gn_postdown_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data);
+
hunk ./gnetconfig/src/gnetconfig-interface_opts.c 133
+	/* Keypress events */
+	g_signal_connect (G_OBJECT(gn_preup_treeview),
+					"key_release_event",
+					G_CALLBACK(cb_gn_preup_treeview_keypress),
+					NULL);
+	g_signal_connect (G_OBJECT(gn_predown_treeview),
+					"key_release_event",
+					G_CALLBACK(cb_gn_predown_treeview_keypress),
+					NULL);
+	g_signal_connect (G_OBJECT(gn_postup_treeview),
+					"key_release_event",
+					G_CALLBACK(cb_gn_postup_treeview_keypress),
+					NULL);
+	g_signal_connect (G_OBJECT(gn_postdown_treeview),
+					"key_release_event",
+					G_CALLBACK(cb_gn_postdown_treeview_keypress),
+					NULL);
+
hunk ./gnetconfig/src/gnetconfig-interface_opts.c 475
+static void
+cb_gn_preup_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data)
+{
+	if (event->keyval != GDK_Delete)
+		return;
+
+	cb_gn_preup_remove (NULL, NULL);
+	return;
+}
+
+static void
+cb_gn_predown_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data)
+{
+	if (event->keyval != GDK_Delete)
+		return;
+
+	cb_gn_predown_remove (NULL, NULL);
+	return;
+}
+
+static void
+cb_gn_postup_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data)
+{
+	if (event->keyval != GDK_Delete)
+		return;
+
+	cb_gn_postup_remove (NULL, NULL);
+	return;
+
+}
+
+static void
+cb_gn_postdown_treeview_keypress (GtkWidget *widget, GdkEventKey *event, gpointer data)
+{
+	if (event->keyval != GDK_Delete)
+		return;
+
+	cb_gn_postdown_remove (NULL, NULL);
+	return;
+}
+
+
}


More information about the Frugalware-darcs mailing list