gnome-applets r11288 - in trunk/mini-commander: . src
- From: callum svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-applets r11288 - in trunk/mini-commander: . src
- Date: Mon, 16 Feb 2009 23:47:40 +0000 (UTC)
Author: callum
Date: Mon Feb 16 23:47:40 2009
New Revision: 11288
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11288&view=rev
Log:
More deprecated function replacement. Why didn't GTK_DISABLE_DEPRECATED pick these up?
Modified:
trunk/mini-commander/ChangeLog
trunk/mini-commander/src/command_line.c
Modified: trunk/mini-commander/src/command_line.c
==============================================================================
--- trunk/mini-commander/src/command_line.c (original)
+++ trunk/mini-commander/src/command_line.c Mon Feb 16 23:47:40 2009
@@ -312,18 +312,18 @@
window = gtk_window_new(GTK_WINDOW_POPUP);
gtk_window_set_screen (GTK_WINDOW (window),
gtk_widget_get_screen (GTK_WIDGET (mc->applet)));
- gtk_window_set_policy(GTK_WINDOW(window), 0, 0, 1);
+ gtk_window_set_resizeable(GTK_WINDOW(window), FALSE);
gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_COMBO);
/* cb */
g_signal_connect_after(GTK_OBJECT(window),
"button_press_event",
- GTK_SIGNAL_FUNC(history_popup_clicked_cb),
+ G_CALLBACK(history_popup_clicked_cb),
NULL);
g_signal_connect_after (G_OBJECT (window), "key_press_event",
G_CALLBACK (history_key_press_cb), NULL);
/* size */
- gtk_widget_set_usize(GTK_WIDGET(window), 200, 350);
+ gtk_widget_set_size_request(GTK_WIDGET(window), 200, 350);
/* frame */
@@ -340,7 +340,7 @@
GTK_POLICY_AUTOMATIC);
g_signal_connect(GTK_OBJECT(scrolled_window),
"button_press_event",
- GTK_SIGNAL_FUNC(history_popup_clicked_inside_cb),
+ G_CALLBACK(history_popup_clicked_inside_cb),
NULL);
gtk_container_add(GTK_CONTAINER(frame), scrolled_window);
gtk_container_set_border_width (GTK_CONTAINER(scrolled_window), 2);
@@ -507,8 +507,9 @@
void
mc_create_command_entry (MCData *mc)
{
- mc->entry = gtk_entry_new_with_max_length (MC_MAX_COMMAND_LENGTH);
-
+ mc->entry = gtk_entry_new_with_max_length ();
+ gtk_entry_set_max_length (GTK_ENTRY (mc->entry), MC_MAX_COMMAND_LENGTH);
+
g_signal_connect (mc->entry, "key_press_event",
G_CALLBACK (command_key_event), mc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]