Commit fd49aa54 authored by Andre Klapper's avatar Andre Klapper 💬 Committed by Andre Klapper

plugins/gtodo/add_edit_item.c Replace deprecated

2009-02-20  Andre Klapper  <a9016009@gmx.de>

	* plugins/gtodo/add_edit_item.c
	* plugins/macro/macro-actions.c:
	Replace deprecated gtk_entry_new_with_max_length by 
	gtk_entry_new/gtk_entry_set_max_length.


svn path=/trunk/; revision=4774
parent 9e789ef2
2009-02-20 Andre Klapper <a9016009@gmx.de>
* plugins/gtodo/add_edit_item.c
* plugins/macro/macro-actions.c:
Replace deprecated gtk_entry_new_with_max_length by
gtk_entry_new/gtk_entry_set_max_length.
2009-02-20 Andre Klapper <a9016009@gmx.de>
* plugins/gtodo/egg-datetime.c:
......@@ -149,7 +149,9 @@ void gui_add_todo_item(GtkWidget *useless, gpointer data, guint32 openid){
gtk_box_pack_start(GTK_BOX(hbox2), label, FALSE, TRUE,0);
gtk_size_group_add_widget(sglabel, label);
/* summary entry box */
summary = gtk_entry_new_with_max_length(64);
summary = gtk_entry_new();
gtk_entry_set_max_length (GTK_ENTRY(summary), 64);
gtk_box_pack_start(GTK_BOX(hbox2), summary, TRUE, TRUE, 0);
g_signal_connect(G_OBJECT(summary), "changed", G_CALLBACK(check_length), addbut);
......
......@@ -122,7 +122,8 @@ on_menu_insert_macro (GtkAction * action, MacroPlugin * plugin)
return;
GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
GtkWidget* entry = gtk_entry_new_with_max_length(1);
GtkWidget* entry = gtk_entry_new();
gtk_entry_set_max_length (GTK_ENTRY(entry), 1);
GtkWidget* label = gtk_label_new_with_mnemonic(_("Press macro shortcut..."));
GtkWidget* hbox = gtk_hbox_new (FALSE, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment