pidgin/pidginproxyoptions.c

branch
gtk4
changeset 41543
d6ba57accc0e
parent 41492
a1db3bb55aac
equal deleted inserted replaced
41542:e0ff7bea9eb3 41543:d6ba57accc0e
164 } 164 }
165 165
166 gtk_widget_set_sensitive(options->options, sensitive); 166 gtk_widget_set_sensitive(options->options, sensitive);
167 } 167 }
168 168
169 static void
170 pidgin_proxy_options_ports_popup_cb(G_GNUC_UNUSED GtkEntry *entry,
171 GtkWidget *widget,
172 G_GNUC_UNUSED gpointer data)
173 {
174 GtkWidget *item = NULL;
175
176 /* This is an easter egg. The items are in reverse order because they are
177 * prepended to the menu.
178 *
179 * It means one of two things, both intended as humorous:
180 * A) your network is really slow and you have nothing better to do than
181 * look at butterflies.
182 * B) You are looking really closely at something that shouldn't matter.
183 */
184
185 item = gtk_menu_item_new_with_label(_("you can see the butterflies mating"));
186 gtk_menu_shell_prepend(GTK_MENU_SHELL(widget), item);
187 gtk_widget_show(item);
188
189 /* This is also an easter egg, see the previous comment. */
190 item = gtk_menu_item_new_with_label(_("If you look real closely"));
191 gtk_menu_shell_prepend(GTK_MENU_SHELL(widget), item);
192 gtk_widget_show(item);
193 }
194
195 /****************************************************************************** 169 /******************************************************************************
196 * GObject Implementation 170 * GObject Implementation
197 *****************************************************************************/ 171 *****************************************************************************/
198 static void 172 static void
199 pidgin_proxy_options_get_property(GObject *obj, guint param_id, GValue *value, 173 pidgin_proxy_options_get_property(GObject *obj, guint param_id, GValue *value,
325 gtk_widget_class_bind_template_child(widget_class, PidginProxyOptions, 299 gtk_widget_class_bind_template_child(widget_class, PidginProxyOptions,
326 password); 300 password);
327 301
328 gtk_widget_class_bind_template_callback(widget_class, 302 gtk_widget_class_bind_template_callback(widget_class,
329 pidgin_proxy_options_proxy_type_changed_cb); 303 pidgin_proxy_options_proxy_type_changed_cb);
330 gtk_widget_class_bind_template_callback(widget_class,
331 pidgin_proxy_options_ports_popup_cb);
332 } 304 }
333 305
334 /****************************************************************************** 306 /******************************************************************************
335 * Public API 307 * Public API
336 *****************************************************************************/ 308 *****************************************************************************/

mercurial