[Pidgin] #341: Buddy Pounces: Pounce when status is...
Pidgin
trac at pidgin.im
Wed Feb 20 23:37:42 EST 2008
#341: Buddy Pounces: Pounce when status is...
---------------------------+------------------------------------------------
Reporter: rlaager | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: pidgin (gtk) | Version:
Resolution: | Keywords:
Pending: 0 |
---------------------------+------------------------------------------------
Comment (by Gilligan):
Replying to [comment:6 rlaager]:
> Replying to [comment:5 Gilligan]:
> > I can't find the pounce.h file from the api
>
> This command might be helpful:
> find -name pounce.h
>
> It's part of the core, so you'll find it in the libpurple directory.
Ah, I've found that file and have added the available option... now I just
need to find where the ui uses it... aha.
This is what the code is for the "Pounce on away" option.
{{{
262:if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialog->on_away)))
options |= PURPLE_POUNCE_OPTION_AWAY;
}}}
And this is the code for making that choice in the ui.
{{{
811:gtk_check_button_new_with_mnemonic(_("P_ounce only when my status is
not Available"));
gtk_table_attach(GTK_TABLE(table), dialog->on_away, 0, 1, 0, 1,
GTK_FILL, 0, 0, 0);
}}}
I think that the combination of a check button and a combo box is great,
but I'm not sure if a plain gtk_combo_box is sufficient or if it would
need to be constructed with gtk_combo_box_new_text(). And what's that
gtk_table being attached? Any pointers would be much appreciated.
Determining what text is selected is the next issue.
I'll get cracking on it later tomorrow.
--
Ticket URL: <http://developer.pidgin.im/ticket/341#comment:9>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list