mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Display mood preferences
This commit is contained in:
parent
9f13b9e939
commit
918d060817
@ -2714,7 +2714,7 @@ static struct cmd_t command_defs[] = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{ "/mood",
|
{ "/mood",
|
||||||
parse_args, 1, 3, NULL,
|
parse_args, 1, 3, &cons_mood_setting,
|
||||||
CMD_NOSUBFUNCS
|
CMD_NOSUBFUNCS
|
||||||
CMD_MAINFUNC(cmd_mood)
|
CMD_MAINFUNC(cmd_mood)
|
||||||
CMD_TAGS(
|
CMD_TAGS(
|
||||||
|
@ -1819,6 +1819,7 @@ _get_group(preference_t pref)
|
|||||||
case PREF_COMPOSE_EDITOR:
|
case PREF_COMPOSE_EDITOR:
|
||||||
case PREF_OUTGOING_STAMP:
|
case PREF_OUTGOING_STAMP:
|
||||||
case PREF_INCOMING_STAMP:
|
case PREF_INCOMING_STAMP:
|
||||||
|
case PREF_MOOD:
|
||||||
return PREF_GROUP_UI;
|
return PREF_GROUP_UI;
|
||||||
case PREF_STATES:
|
case PREF_STATES:
|
||||||
case PREF_OUTTYPE:
|
case PREF_OUTTYPE:
|
||||||
@ -1867,7 +1868,6 @@ _get_group(preference_t pref)
|
|||||||
case PREF_CORRECTION_ALLOW:
|
case PREF_CORRECTION_ALLOW:
|
||||||
case PREF_MAM:
|
case PREF_MAM:
|
||||||
case PREF_SILENCE_NON_ROSTER:
|
case PREF_SILENCE_NON_ROSTER:
|
||||||
case PREF_MOOD:
|
|
||||||
return PREF_GROUP_CONNECTION;
|
return PREF_GROUP_CONNECTION;
|
||||||
case PREF_OTR_LOG:
|
case PREF_OTR_LOG:
|
||||||
case PREF_OTR_POLICY:
|
case PREF_OTR_POLICY:
|
||||||
|
@ -1733,6 +1733,7 @@ cons_show_ui_prefs(void)
|
|||||||
cons_inpblock_setting();
|
cons_inpblock_setting();
|
||||||
cons_titlebar_setting();
|
cons_titlebar_setting();
|
||||||
cons_statusbar_setting();
|
cons_statusbar_setting();
|
||||||
|
cons_mood_setting();
|
||||||
|
|
||||||
cons_alert(NULL);
|
cons_alert(NULL);
|
||||||
}
|
}
|
||||||
@ -2947,3 +2948,13 @@ cons_remove_alert(ProfWin* window)
|
|||||||
g_list_free_full(item, g_free);
|
g_list_free_full(item, g_free);
|
||||||
free(win_name);
|
free(win_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
cons_mood_setting(void)
|
||||||
|
{
|
||||||
|
if (prefs_get_boolean(PREF_MOOD)) {
|
||||||
|
cons_show("Display user mood (/mood) : ON");
|
||||||
|
} else {
|
||||||
|
cons_show("Display user mood (/mood) : OFF");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -334,6 +334,7 @@ void cons_executable_setting(void);
|
|||||||
void cons_slashguard_setting(void);
|
void cons_slashguard_setting(void);
|
||||||
void cons_mam_setting(void);
|
void cons_mam_setting(void);
|
||||||
void cons_silence_setting(void);
|
void cons_silence_setting(void);
|
||||||
|
void cons_mood_setting(void);
|
||||||
void cons_show_contact_online(PContact contact, Resource* resource, GDateTime* last_activity);
|
void cons_show_contact_online(PContact contact, Resource* resource, GDateTime* last_activity);
|
||||||
void cons_show_contact_offline(PContact contact, char* resource, char* status);
|
void cons_show_contact_offline(PContact contact, char* resource, char* status);
|
||||||
void cons_theme_properties(void);
|
void cons_theme_properties(void);
|
||||||
|
@ -1149,6 +1149,11 @@ cons_silence_setting(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
cons_mood_setting(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_bookmarks_ignore(gchar** list, gsize len)
|
cons_show_bookmarks_ignore(gchar** list, gsize len)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user